MIL_ID SrcImageBufId, | //in |
MIL_INT64 Condition, | //in |
MIL_DOUBLE CondLow, | //in |
MIL_DOUBLE CondHigh, | //in |
MIL_INT64 BoxDefinitionType, | //in |
MIL_INT *TopLeftXPtr, | //out |
MIL_INT *TopLeftYPtr, | //out |
MIL_INT *BottomRightXOrLengthPtr, | //out |
MIL_INT *BottomRightYOrLengthPtr, | //out |
MIL_INT64 ControlFlag | //in |
This function computes the bounding box that contains valid pixels according to a given condition, based on a lower limit and an upper limit. For example, you can define a condition such that pixels are valid only within a specified value range.
You can specify to return the bounding box in one of two ways: using coordinates of 2 opposite corners, or using coordinates of 1 corner and the width and height (in pixel units).
You can limit this function's results to a region of the source image buffer using a region of interest (ROI) set using MbufSetRegion().
Specifies the identifier of the data source of the operation. This parameter must be set to the MIL identifier of a 1-band image buffer.
This image buffer can have an ROI set using MbufSetRegion(). The ROI must be defined in raster format (M_RASTER or M_VECTOR_AND_RASTER). An error is generated if the ROI is only in vector format (M_VECTOR).
Specifies the condition under which pixels are considered valid.
For specifying the condition
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_EQUAL |
Specifies that only pixels with values equal to CondLow are considered valid. CondHigh must be set to 0. (summarize)Specifies that only pixels with values equal to CondLow are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GREATER |
Specifies that only pixels with values greater than CondLow are considered valid. CondHigh must be set to 0. (summarize)Specifies that only pixels with values greater than CondLow are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_GREATER_OR_EQUAL |
Specifies that only pixels with values greater than or equal to CondLow are considered valid. CondHigh must be set to 0. (summarize)Specifies that only pixels with values greater than or equal to CondLow are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_IN_RANGE |
Specifies that pixel values between CondLow and CondHigh, inclusive, are considered valid. |
||||||||||||||||||||||||||||||||||||||
M_LESS |
Specifies that only pixels with values less than CondHigh are considered valid. CondLow must be set to 0. (summarize)Specifies that only pixels with values less than CondHigh are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LESS_OR_EQUAL |
Specifies that only pixels with values less than or equal to CondHigh are considered valid. CondLow must be set to 0. (summarize)Specifies that only pixels with values less than or equal to CondHigh are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NOT_EQUAL |
Specifies that only pixels with values not equal to CondLow are considered valid. CondHigh must be set to 0. (summarize)Specifies that only pixels with values not equal to CondLow are considered valid. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_OUT_RANGE |
Specifies that pixels with values less than CondLow, or greater than CondHigh, are considered valid. |
Specifies the way in which the bounding box is returned.
For specifying the way in which the bounding box is
returned
|
|||||||||||||||||||||||||||||||||||||||
Value | Description | ||||||||||||||||||||||||||||||||||||||
M_BOTH_CORNERS |
Specifies to return the bounding box using the coordinates of its top-left and bottom-right corners. |
||||||||||||||||||||||||||||||||||||||
M_CORNER_AND_DIMENSION |
Specifies to return the bounding box using the coordinates of its top-left corner, and the box's width and height. |
Specifies the address of the variable in which to write the X-coordinate of the top-left corner of the bounding box.
Specifies the address of the variable in which to write the Y-coordinate of the top-left corner of the bounding box.
Specifies the address of the variable in which to write the X-coordinate of the bottom-right corner or the width of the bounding box.
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |