16#include <FMEThirdPartyWarningsDisable.h>
18#include <FMEThirdPartyWarningsRestore.h>
32namespace ReleaseToolsMisc {
43 const std::string &
sep = LineSeparator);
69 const std::string &
regEx);
74 const std::string &
regEx,
75 const std::string &
sep=LineSeparator);
197template <
typename DT1,
typename DT2>
207 for (p.u = box.
v1.u; p.u <= box.
v2.u; ++p.u){
208 for (p.t = box.
v1.t; p.t <= box.
v2.t; ++p.t){
209 for (p.c = box.
v1.c; p.c <= box.
v2.c; ++p.c){
210 for (p.z = box.
v1.z; p.z <= box.
v2.z; ++p.z){
211 for (p.y = box.
v1.y; p.y <= box.
v2.y; ++p.y){
214 const DT1 *v1 =
img1.getImagePointer(p);
215 const DT2 *v2 =
img2.getImagePointer(p);
216 for (; p.x <= box.
v2.x; ++p.x, ++v1, ++v2){
218 const double diff =
static_cast<double>(*v1) -
static_cast<double>(*v2);
The class PagedImage, representing a fragmented image that manages properties and data of an image lo...
This class manages/represents a rectangular 6D image region that is organized linearly in memory.
VectorType v1
Corner v1 of the subimage region (included in region).
static TSubImageBox< intT > intersect(const TSubImageBox< intT > &box1, const TSubImageBox< intT > &box2)
Returns the overlapping region of subimage regions box1 and box2.
VectorType v2
Corner v2 of the subimage region (also included in region!).
intT getNumVoxels() const
Returns number of voxels in the subimage region, i.e., the product of all extents if this is not empt...
bool isEmpty() const
Returns true if subimage region is empty, i.e., if any of the components of v1 is greater than the co...
This template class manages/represents a rectangular 6D image region in memory that is organized line...
MLint32 MLErrorCode
Type of an ML Error code.
Tool function(s) to determine translation information from one directory to another.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
MLint64 MLint
A signed ML integer type with at least 64 bits used for index calculations on very large images even ...