: TF = sizesMatch (r, A)

Determine if object and image are size-compatible.

Outputs logical 1 (true) if the first two dimensions of an n-dimensional image A match the image size of the spatial referencing object r, otherwise outputs zero (false).

See also: imref2d, imref3d.

Package: image