Check properties of two images
dip_Error dip_ImagesCheckTwo( image1, image2, imageType, dataType, compareFlag, checkFlag )
This function checks whether the image type and the data type of the first DIPlib Image matches with the imageType and dataType variables, and compares the other Image fields of the first DIPlib Image with those of the second Image. This comparison is done by calling ImagesCompareTwo. The checkFlag can be used to compare properties not supported by ImagesCompare. ImagesCheckTwo returns an error code if a check or comparison fails.
Data type | Name | Description |
dip_Image | image1 | First Image |
dip_Image | image2 | Second Image |
dip_ImageType | imageType | Image type of the first Image |
dip_DataTypeProperties | dataType | Data type of the first Image. See DataTypeGetInfo |
dipf_ImagesCompare | compareFlag | Properties to compare. See ImagesCompare |
dipf_ImagesCheck | checkFlag | Extra properties to be compared |
Name | Description |
DIP_CKIM_MAX_PRECISION_MATCH | Check whether data types match or match to the DIP_GTP_MAX_PRECISION DataType |
DIP_CKIM_CASTING_TYPE_MATCH | Check whether data types match or match to the DIP_GTP_CAST_R2C or DIP_GTP_CAST_C2R types |
DIP_CKIM_IGNORE_NULL_DIM_IMAGES | Ignore images with a zero dimensionality, this flag is usefull when 0d images are used as generic data containers of constants |
ImagesCompareTwo, ImagesCompare, ImagesCheck
DIPlib on-line documentation | Function reference | Global function index