[mmGetroi] [Up] [mmDatatype] Image Information and Manipulation

mmRoi
Get minimum rectangle of an image..

Synopsis

Image mmRoi ( const Image& X , const String& OPTION = "IMAGE" );

Input

X Image [ Gray-scale (uint8 or uint16) or binary image ]

OPTION String

'IMAGE'or 'SIZE'.

Default: "IMAGE"

Output

Y Image [ Gray-scale (uint8 or uint16) or binary image ]

Description

Get the minimum rectangle which does not contain zero pixels. This operator can also return only the minimum rectangle size, depending on the parameter OPTION. If OPTION is 'IMAGE ', it returns an image. If OPTION is 'SIZE' it returns an line array of type uint16 [x0 y0 z0 w h d] where x0, y0 and z0 are the top-left corner of rectangle and w, h and d are the rectangle size.

[mmGetroi] [Up] [mmDatatype]