CImage:DimEq
The DimEq method returns true if a comparison image has the same lengths in all dimensions.
bSuccess = CImage:DimEq( CImage )
where
CImage is the comparison image.
bSuccess is the returned success code. If the dimensions are identical, it is true, otherwise false.
This method compares the dimensions of two images, axis by axis. The data types are not compared. To compare two images based on their pixel values, use the ==, >=, or > math operator.
The following script compares 2 images in files sPath1 andsPath2 for equal dimensions:
|
-- create image 1 |
|
-- open image 1 |
|
-- create image 2 |
|
-- open image 2 |
|
-- compare the dimensions |
|
-- announce that they are equal |
|
|