MIL_ID ContextGraId, | //in |
MIL_ID Src1MilId, | //in |
MIL_ID Src2MilId, | //in |
MIL_ID DstImageBufOrListGraId, | //in |
MIL_INT64 Operation, | //in |
MIL_DOUBLE Param1, | //in |
MIL_DOUBLE Param2, | //in |
MIL_INT64 ControlFlag | //in |
The function draws the settings of an image processing context or the results of a MIL image processing operation, into a destination image buffer.
You can also use MimDraw() to draw the internal copy of a source image that was passed to MimControl() or an image processing function and saved in an image processing context or result buffer. Note that the drawn image might differ from the original source image (for example, in bit depth). This is because, for greater optimization, an image processing context or result buffer might store its internal image data in a different format than the original source image buffer.
Specifies the identifier of the graphics context to use. This parameter must be set to one of the following:
For specifying the graphics
context
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies that the default graphics context of the current MIL application is used. (more details...) |
||||||||||||||||||||||||||||||||||||||
MIL graphics context identifier |
Specifies a valid graphics context identifier, which you have allocated using MgraAlloc(). |
Specifies the identifier of the primary source image buffer, result buffer, or image processing context from which to extract the results to draw. The buffer must have been previously allocated on the required system, using MbufAlloc...(), MimAllocResult(), or MimAlloc(), respectively.
If an image buffer is specified, it must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the secondary source image buffer for the drawing operation. The buffer must have been previously allocated on the required system using MbufAlloc...().
If this parameter is not required for the draw operation, it must be set to M_NULL.
This image buffer must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
See the Parameter associations section for possible values that can be specified.
Specifies the identifier of the destination image buffer or graphics list in which to draw. The buffer can be any valid MIL image buffer allocated using MbufAlloc...(). However, when the source buffers are image buffers, the destination image buffer should be greater than or equal in size and bit depth to the source image buffers. If the destination image buffer is smaller than the source image buffers, the excess will not be part of the destination image.
If drawing an internal image contained in an image processing context or result buffer, the same destination buffer rule applies. In this case, you can use MimInquire() to find the size, depth, and other attributes of the internal image to correctly set the destination buffer.
If specifying an image buffer, it must not have a region of interest (ROI) associated with it. Using an image buffer with an ROI will cause an error.
An operation can draw in a graphics list only if it is specified in the operation's description. If you specify a graphics list, the graphics list must have been previously allocated using MgraAllocList(). You cannot use a graphics list when drawing with wavelet transformations.
Specifies the type of operation to perform.
See the Parameter associations section for possible values that can be specified.
Specifies an attribute of the operation to perform.
If this parameter is not required for the draw operation, it must be set to 0.
See the Parameter associations section for possible values that can be specified.
Specifies an attribute of the operation to perform.
If this parameter is not required for the draw operation, it must be set to 0.
See the Parameter associations section for possible values that can be specified.
Specifies drawing constraints. You must set this parameter to M_DEFAULT unless you are drawing MimLocatePeak1d() or MimWaveletTransform() results.
To specify the default drawing behavior, set this parameter to the following:
For specifying the default drawing
behavior
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default behavior. (more details...) |
To specify the number of fractional bits in the source values when using MimLocatePeak1d() results, set this parameter to the following:
For specifying the number of fractional
bits when using MimLocatePeak1d results
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_FIXED_POINT + n |
Specifies the number of fractional bits in the source values, when they are in a fixed-point format. (more details...) |
To specify how to manage the range of pixel values when using MimWaveletTransform() results, set this parameter to one of the following:
For specifying how to manage the range of
pixel values when using MimWaveletTransform results
|
|||||||||||||||||||||||||||||||||||||||
Value | Description
|
||||||||||||||||||||||||||||||||||||||
M_AUTO_SCALE |
Remaps pixel values (Src1MilId) according to the range of pixel values allowed in the destination (DstImageBufOrListGraId). |
||||||||||||||||||||||||||||||||||||||
M_SATURATION |
Clips pixel values (Src1MilId) that are outside the range of pixel values allowed in the destination (DstImageBufOrListGraId). |
The tables below list possible values for the Src1MilId, Src2MilId, Operation, Param1, and Param2 parameters.
In the following table, Src1MilId specifies an image processing context and Operation specifies the operation to perform with the specified image processing context. Src2MilId, Param1, and Param2 are not required, and must be set to M_NULL, 0, and 0, respectively.
For specifying to perform the draw
operation with the specified image processing context
|
|||||||||||||||||||||||||||||||||||||||
Src1MilId |
Description
|
||||||||||||||||||||||||||||||||||||||
Operation | |||||||||||||||||||||||||||||||||||||||
Src2MilId | |||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Dead
pixel correction image processing context ID |
Specifies a dead pixel correction image processing context used in MimDeadPixelCorrection() operations, allocated using MimAlloc() with M_DEAD_PIXEL_CONTEXT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_DEAD_PIXELS |
Draws the dead pixels image from the dead pixel correction image processing context. (more details...) |
||||||||||||||||||||||||||||||||||||||
Flat-field image processing context ID |
Specifies an image processing context used in MimFlatField() operations, allocated using MimAlloc() with M_FLAT_FIELD_CONTEXT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_DARK_IMAGE |
Draws the dark image from the flat-field image processing context. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_FLAT_IMAGE |
Draws the flat image from the flat-field context. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_OFFSET_IMAGE |
Draws the offset image from the flat-field context. (more details...) |
||||||||||||||||||||||||||||||||||||||
Match image processing context ID |
Specifies an image processing context used in MimMatch() operations, allocated using MimAlloc() with M_MATCH_CONTEXT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_MASK |
Draws the mask image from the match image processing context. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_MODEL |
Draws the model image from the match context. (more details...) |
In the following table, Src1MilId specifies a result buffer and Operation specifies the operation to perform with the specified result buffer. Src2MilId is not required and must be set to M_NULL. Set Param1 and Param2 to 0, unless otherwise specified.
For specifying a draw operation that uses
image processing results
|
|||||||||||||||||||||||||||||||||||||||
Src1MilId |
Description
|
||||||||||||||||||||||||||||||||||||||
Operation | |||||||||||||||||||||||||||||||||||||||
Src2MilId | |||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Find orientation result buffer ID |
Specifies a find orientation image processing result buffer identifier, allocated using MimAllocResult() with M_FIND_ORIENTATION_LIST. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_IMAGE_ORIENTATION |
Draws arrows to represent the found image orientations (viewing angles) calculated by MimFindOrientation(). (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Specifies the index of the first orientation to draw from the result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param2 |
Specifies the number of orientations to draw from the result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Wavelet transformation result buffer ID |
Specifies a result buffer used to store MimWaveletTransform() results, allocated using MimAllocResult() with M_WAVELET_TRANSFORM_RESULT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_WAVELET + |
Draws the resulting image of the wavelet transformation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_WAVELET_WITH_PADDING + |
Draws the resulting image of the wavelet transformation, with padding. (more details...) |
You can add one of the following values to the above-mentioned values to specify whether the drawing operation uses the real or imaginary numbers in the wavelet result.
For specifying whether to draw using the
real or imaginary numbers in the wavelet result
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_IMAGINARY_PART |
Draws using the imaginary part of the values in the wavelet result. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_REAL_PART |
Draws using only the real numbers in the result. (more details...) |
In the following table, Src1MilId specifies a result buffer and Operation specifies the operation to perform with the specified result buffer. Src2MilId and Param2 are not required, and must be set to M_NULL and 0, respectively.
For specifying to perform the
draw operation with the result buffer used to store
MimStatMultiple() results
|
|||||||||||||||||||||||||||||||||||||||
Src1MilId |
Description
|
||||||||||||||||||||||||||||||||||||||
Operation | |||||||||||||||||||||||||||||||||||||||
Src2MilId | |||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Multiple statistics result buffer ID |
Specifies a result buffer used to store MimStatMultiple() results, allocated using MimAllocResult() with M_STAT_MULTIPLE_RESULT. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_STAT_RESULT |
Draws the specified statistical results of the multiple statistic image processing result buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Specifies the type of statistical operation's result to draw. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX |
Draws the results of the maximum pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_MAX_ABS |
Draws the results of the maximum absolute pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_MEAN |
Draws the results of the mean value of the pixels operation. |
||||||||||||||||||||||||||||||||||||||
M_MIN |
Draws the results of the minimum pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_MIN_ABS |
Draws the results of the minimum absolute pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_STANDARD_DEVIATION |
Draws the results of the standard deviation operation. |
||||||||||||||||||||||||||||||||||||||
M_SUM |
Draws the results of the sum of the pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_SUM_ABS |
Draws the results of the sum of the absolute pixel operation. |
||||||||||||||||||||||||||||||||||||||
M_SUM_OF_SQUARES |
Draws the results of the sum of the squared pixel operation. |
In the following table, Src1MilId, and optionally Src2MilId, specify image buffer(s) and Operation specifies the operation to perform with the specified image buffer(s).
For specifying to perform the
draw operation with the image buffer(s) used in
MimLocatePeak1d()
|
|||||||||||||||||||||||||||||||||||||||
Src1MilId |
Description
|
||||||||||||||||||||||||||||||||||||||
Operation | |||||||||||||||||||||||||||||||||||||||
Src2MilId | |||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Locate 1D peak position image buffer ID |
Specifies the position destination image buffer used in MimLocatePeak1d() operations. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_PEAKS + |
Draws the peaks at the position at which they were found in the original source image. (more details...) |
||||||||||||||||||||||||||||||||||||||
Src2MilId |
Specifies whether the intensity results will be used when drawing the peaks. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies to draw the peaks in the foreground color of the graphics context specified using ContextGraId. |
||||||||||||||||||||||||||||||||||||||
Locate 1D peak intensity image buffer ID |
Specifies the intensity destination image buffer used in MimLocatePeak1d() operations. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Specifies the row in the source image buffers from which to read the results. |
||||||||||||||||||||||||||||||||||||||
Param2 |
Specifies the size of the drawn representation of valid peaks. (more details...) |
You must add one of the following values to the above-mentioned value to specify the direction in which the peak detection was performed.
For specifying the direction in
which the peak detection was performed
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_HORIZONTAL |
Specifies that the peaks detection was performed in the horizontal direction. |
||||||||||||||||||||||||||||||||||||||
M_VERTICAL |
Specifies that the peaks detection was performed in the vertical direction. (more details...) |
You must add one of the following values to the above-mentioned value to specify the style in which to draw.
For specifying the style in which
to draw
|
|||||||||||||||||||||||||||||||||||||||
Combination value | Description
|
||||||||||||||||||||||||||||||||||||||
M_DOTS |
Specifies to draw the valid result positions as dots in the destination buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LINES |
Specifies to draw line segments between valid positions in the destination buffer. (more details...) |
In the following table, Src1MilId specifies the result buffer and Operation specifies the operation to perform with the specified result buffer.
For specifying to perform the
draw operation with the result buffer(s) used in
MimLocatePeak1d()
|
|||||||||||||||||||||||||||||||||||||||
Src1MilId |
Description
|
||||||||||||||||||||||||||||||||||||||
Operation | |||||||||||||||||||||||||||||||||||||||
Src2MilId | |||||||||||||||||||||||||||||||||||||||
Param1 | |||||||||||||||||||||||||||||||||||||||
Param2 | |||||||||||||||||||||||||||||||||||||||
Locate peak 1D result buffer ID |
Specifies a result buffer allocated using MimAllocResult() with M_LOCATE_PEAK_1D_RESULT and used in MimLocatePeak1d() operations. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_DEPTH_MAP_ROW |
Specifies to write the position values of the specified result buffer into a single row of the specified image buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Specifies the row of the specified image buffer in which to write the position values. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_INTENSITY_MAP_ROW |
Specifies to write the intensity values of the specified result buffer into a single row of the specified image buffer. (more details...) |
||||||||||||||||||||||||||||||||||||||
Param1 |
Specifies the row of the specified image buffer in which to write the intensity values. (more details...) |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |