DIPlib Documentation - ©1995-2017 Quantitative Imaging Group, Delft University of Technology.

ImagesCheckTwo

Check properties of two images

SYNOPSIS

dip_Error dip_ImagesCheckTwo( image1, image2, imageType, dataType, compareFlag, checkFlag )

FUNCTION

This function checks whether the image type and the data type of the two images match with the imageType and dataType variables, and compares selected properties of the two images. 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.

ARGUMENTS

Data typeNameDescription
dip_Imageimage1First Image
dip_Imageimage2Second Image
dip_ImageTypeimageTypeImage type of the first Image
dip_DataTypePropertiesdataTypeData type of the first Image. See DataTypeGetInfo
dipf_ImagesComparecompareFlagProperties to compare. See ImagesCompare
dipf_ImagesCheckcheckFlagExtra properties to be compared

dipf_ImagesCheck

NameDescription
DIP_CKIM_MAX_PRECISION_MATCHCheck whether data types match or match to the DIP_GTP_MAX_PRECISION DataType
DIP_CKIM_CASTING_TYPE_MATCHCheck whether data types match or match to the DIP_GTP_CAST_R2C or DIP_GTP_CAST_C2R types
DIP_CKIM_IGNORE_NULL_DIM_IMAGESIgnore images with a zero dimensionality, this flag is usefull when 0d images are used as generic data containers of constants

SEE ALSO

ImagesCompareTwo, ImagesCompare, ImagesCheck