| Customize Help
| Save Settings

MimDraw



Function Map
Synopsis
Draw the settings of an image processing context or the results of an image processing operation.
Syntax
void MimDraw(
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
)
Description

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.

Note that this function reference has not been updated for a MIL system added during a MIL update. Refer to the MIL system's release note to see which MIL system’s documentation you should use in its place and any possible differences.
Parameters
This function is not supported on the selected boards.
This function reference has not been updated for the selected MIL system. To show the content of this page, choose a second MIL system; refer to the MIL system's release note to see which MIL system’s documentation to choose and any possible differences.
Parameters
ContextGraId

Specifies the identifier of the 2D graphics context to use. This parameter must be set to one of the following:

function map For specifying the 2D graphics context
Click to summarizeValue Description
Click to summarize M_DEFAULT

Specifies that the default 2D graphics context of the current MIL application is used.

Note that there is a different default 2D graphics context for each thread.

(summarize)
Click to summarize MIL 2D graphics context identifier

Specifies a valid 2D graphics context identifier, which you have allocated using MgraAlloc().

Src1MilId

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.

Src2MilId

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.

DstImageBufOrListGraId

Specifies the identifier of the destination image buffer or 2D 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 2D graphics list only if it is specified in the operation's description. If you specify a 2D graphics list, the 2D graphics list must have been previously allocated using MgraAllocList(). You cannot use a 2D graphics list when drawing with wavelet transformations.

Operation

Specifies the type of operation to perform.

See the Parameter associations section for possible values that can be specified.

Param1

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.

Param2

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.

ControlFlag

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:

function map For specifying the default drawing behavior
Click to summarizeValue Description
Click to summarize M_DEFAULT

Specifies the default behavior. Except when drawing MimLocatePeak1d() or MimWaveletTransform() results, MIL ignores this parameter.

When drawing MimLocatePeak1d() results, the default is M_FIXED_POINT + n, where n = 0.

When drawing MimWaveletTransform() results, the default is M_AUTO_SCALE.

(summarize)

To specify the number of fractional bits in the source values when using MimLocatePeak1d() results, set this parameter to the following:

function map For specifying the number of fractional bits when using MimLocatePeak1d() results
Click to summarizeValue Description
Click to summarize M_FIXED_POINT + n

Specifies the number of fractional bits in the source values, when they are in a fixed-point format. Set n to an integer between 0 and 7, inclusive.

(summarize)

To specify how to manage the range of pixel values when using MimWaveletTransform() results, set this parameter to one of the following:

function map For specifying how to manage the range of pixel values when using MimWaveletTransform() results
Click to summarizeValue Description
Click to summarize M_AUTO_SCALE

Remaps pixel values (Src1MilId) according to the range of pixel values allowed in the destination (DstImageBufOrListGraId).

Click to summarize M_SATURATION

Clips pixel values (Src1MilId) that are outside the range of pixel values allowed in the destination (DstImageBufOrListGraId).

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.

function map For specifying to perform the draw operation with the specified image processing context
Click to summarize
Src1MilId
Description
Operation
Src2MilId
Param1
Param2
Click to summarize 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.

(summarize)
Click to summarize M_DRAW_DEAD_PIXELS

Draws the dead pixels image from the dead pixel correction image processing context.

(summarize)
Click to summarize Flat-field image processing context ID

Specifies an image processing context used in MimFlatField() operations, allocated using MimAlloc() with M_FLAT_FIELD_CONTEXT.

(summarize)
Click to summarize M_DRAW_DARK_IMAGE

Draws the dark image from the flat-field image processing context. The dark image represents the thermal agitation of the camera's CCD.

(summarize)
Click to summarize M_DRAW_FLAT_IMAGE

Draws the flat image from the flat-field context. The flat image represents the variation in sensitivity of each element of the camera's CCD.

(summarize)
Click to summarize M_DRAW_OFFSET_IMAGE

Draws the offset image from the flat-field context. The offset image represents the electrical bias of the camera's CCD.

(summarize)
Click to summarize Match image processing context ID

Specifies an image processing context used in MimMatch() operations, allocated using MimAlloc() with M_MATCH_CONTEXT.

(summarize)
Click to summarize M_DRAW_MASK

Draws the mask image from the match image processing context. All non-zero values in the image are considered mask pixels; these pixels will mask out corresponding pixels in the model image when MimMatch() performs the match.

(summarize)
Click to summarize M_DRAW_MODEL

Draws the model image from the match context. MimMatch() compares its source image against this model image.

(summarize)

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.

function map For specifying a draw operation that uses image processing results
Click to summarize
Src1MilId
Description
Operation
Src2MilId
Param1
Param2
Click to summarize Augmentation result buffer ID

Specifies an augmentation result buffer, allocated using MimAllocResult() with M_AUGMENTATION_RESULT, and used in MimAugment() operations.

The DstImageBufOrListGraId parameter must specify an image buffer that can be processed (MbufAlloc...() with M_IMAGE + M_PROC). It must have the same number of bands and be the same type as the source used with MimAugment(). To specify an image buffer with an optimal size, so it can hold the results of all possible augmentations, call MimGetResult() with M_AUG_OPTIMAL_SIZE_X and M_AUG_OPTIMAL_SIZE_Y.

(summarize)
Click to summarize M_DRAW_AUG_IMAGE

Draws the resulting image of the augmentation.

(summarize)
Click to summarize Find orientation result buffer ID

Specifies a find orientation image processing result buffer identifier, allocated using MimAllocResult() with M_FIND_ORIENTATION_LIST.

The result buffer must contain the dominant orientations (angle values found using MimFindOrientation()) of the image and the orientation scores (between 0 and 100).

(summarize)
Click to summarize M_DRAW_IMAGE_ORIENTATION

Draws arrows to represent the found image orientations (viewing angles) calculated by MimFindOrientation(). The center of each arrow will be at the center of the destination image buffer. The arrow's length is proportional to its score and the available space in the destination buffer (DstImageBufOrListGraId). With multiple calls to MimDraw(), you can set each arrow to have a different color, dictated by the 2D graphics context specified (ContextGraId). Depending on your requirements, you would either change the foreground color associated with the 2D graphics context or allocate multiple 2D graphics context each with a different foreground color. This can be useful for debugging your application. This operation can draw in a 2D graphics list.

(summarize)
Click to summarize Src2MilId

This parameter must be set to M_NULL.

(summarize)
Click to summarize Param1

Specifies the index of the first orientation to draw from the result buffer. The first orientation in the result buffer is at index 0 and will have a score of 100%.

(summarize)
Click to summarize Param2

Specifies the number of orientations to draw from the result buffer. The number of orientations cannot exceed the number of entries allocated using MimAllocResult() with NbEntries.

(summarize)
Click to summarize Statistics result buffer ID

Specifies a result buffer used to store MimStatCalculate() results, allocated using MimAllocResult() with M_STATISTICS_RESULT.

(summarize)
Click to summarize M_DRAW_GLCM_MATRIX

Draws the internally generated co-occurrence matrix. Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation.

Note that only co-occurrence matrix statistics calculated using the entire source image can be drawn. Using results from a co-occurrence matrix window will generate an error.

(summarize)
Click to summarize M_DRAW_STAT_RESULT

Draws the specified statistical results of the image processing result buffer. Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation.

(summarize)
Click to summarize Src2MilId

This parameter must be set to M_NULL.

(summarize)
Click to summarize Param1

Specifies the type of statistical operation's result to draw.

(summarize)
Click to summarize M_STAT_GLCM_CONTRAST

Draws the results of the co-occurrence contrast matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_GLCM_CORRELATION

Draws the results of the co-occurrence correlation matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_GLCM_DISSIMILARITY

Draws the results of the co-occurrence dissimilarity matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_GLCM_ENERGY

Draws the results of the co-occurrence energy matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_GLCM_ENTROPY

Draws the results of the co-occurrence entropy matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_GLCM_HOMOGENEITY

Draws the results of the co-occurrence homogeneity matrix statistic.

Note that the results are saturated to the maximum possible value for the specified destination buffer of the draw operation. The resulting co-occurrence matrix is resized to fit into the provided buffer, using closest neighbor interpolation. Only co-occurrence matrix statistics calculated using the entire source image can be drawn. If results from a co-occurrence matrix window, an error occurs.

(summarize)
Click to summarize M_STAT_MAX

Draws the results of the maximum pixel operation.

Click to summarize M_STAT_MAX_ABS

Draws the results of the maximum absolute pixel operation.

Click to summarize M_STAT_MEAN

Draws the results of the mean value of the pixels operation.

Click to summarize M_STAT_MIN

Draws the results of the minimum pixel operation.

Click to summarize M_STAT_MIN_ABS

Draws the results of the minimum absolute pixel operation.

Click to summarize M_STAT_STANDARD_DEVIATION

Draws the results of the standard deviation operation.

Click to summarize M_STAT_SUM

Draws the results of the sum of the pixel operation.

Click to summarize M_STAT_SUM_ABS

Draws the results of the sum of the absolute pixel operation.

Click to summarize M_STAT_SUM_OF_SQUARES

Draws the results of the sum of the squared pixel operation.

Click to summarize Wavelet transformation result buffer ID

Specifies a result buffer used to store MimWaveletTransform() results, allocated using MimAllocResult() with M_WAVELET_TRANSFORM_RESULT.

The DstImageBufOrListGraId parameter must specify an image buffer that can be processed (MbufAlloc...() with M_IMAGE + M_PROC). It must have the same number of bands and be the same type as the source used with MimWaveletTransform().

For dyadic modes (MimControl() with M_TRANSFORMATION_MODE set to M_DYADIC), drawings are in the top-right (vertical coefficient), bottom-right (diagonal coefficient), and bottom-left (horizontal coefficient) corners of the display. This drawing pattern repeats for each level calculated (MimGetResult() with M_NUMBER_OF_LEVELS). Since dyadic transformations sample wavelet coefficients by a factor of 2 per level, drawings are resized at each level. MIL also draws the approximation (the low frequency rendition) of the wavelet transformation at the last level, in the top-left corner of the display.

For undecimated modes (M_UNDECIMATED), drawings are in one row, per level. Each row is split into three columns, representing the horizontal (left column), diagonal (middle column), and vertical (right column) wavelet coefficients for that level. Since undecimated transformations are not sampled, drawings are all the same size, regardless of level. MIL also draws the approximation (the low frequency rendition) of the wavelet transformation at the last level, in the first column of the first row. The middle and right columns in this row are blank.

(summarize)
Click to summarize M_DRAW_WAVELET +

Draws the resulting image of the wavelet transformation.

During the wavelet transformation, calculations can require MIL to internally add padding data to the image's border. M_DRAW_WAVELET does not draw this padding with the resulting image.

To retrieve the image size required to perform this operation, use MimGetResult() with M_WAVELET_DRAW_SIZE_X and M_WAVELET_DRAW_SIZE_Y.

(summarize)
Click to summarize M_DRAW_WAVELET_WITH_PADDING +

Draws the resulting image of the wavelet transformation, with padding.

During the wavelet transformation, calculations can require MIL to internally add padding data to the image's border. M_DRAW_WAVELET_WITH_PADDING draws the resulting image with this padding.

To retrieve the image size required to perform this operation, use MimGetResult() with M_WAVELET_DRAW_SIZE_X_WITH_PADDING and M_WAVELET_DRAW_SIZE_Y_WITH_PADDING.

(summarize)
Combination values for M_DRAW_WAVELET (when Src1MilId=Wavelet transformation result buffer ID); M_DRAW_WAVELET_WITH_PADDING (when Src1MilId=Wavelet transformation result buffer ID).

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.

function map For specifying whether to draw using the real or imaginary numbers in the wavelet result
Click to summarize
Combination value
Description
Click to summarize M_IMAGINARY_PART

Draws using the imaginary part of the values in the wavelet result. Only available for complex wavelet transformations (MimGetResult() with M_TRANSFORMATION_DOMAIN must return M_COMPLEX).

(summarize)
Click to summarize M_REAL_PART

Draws using only the real numbers in the result. Available for any type of wavelet transformation.

This is the default value.

(summarize)

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).

function map For specifying to perform the draw operation from image buffer(s) containing a depth map and/or intensity map
Click to summarize
Src1MilId
Description
Operation
Src2MilId
Param1
Param2
Click to summarize Uncorrected depth map image buffer ID

Specifies an image buffer containing an uncorrected depth map.

The image buffer must be properly formatted. This is the format that would result if you iterated calls to MimLocatePeak1d() and then drew the results using MimDraw() with M_DRAW_DEPTH_MAP_ROW. For more information, see the Generating an uncorrected depth map subsection of the Peak intensity detection and depth maps section of Chapter 5: Specialized image processing.

(summarize)
Click to summarize M_DRAW_PEAKS +

Draws the peaks at the position at which they were found in the original grayscale source image. It draws each peak using the peak's calculated intensity value or using the foreground color of the specified 2D graphics context.

This operation cannot be rendered in world units (MgraControl() with M_INPUT_UNITS cannot be set to M_WORLD) when drawing in either an image buffer or a 2D graphics list. Additionally, this operation cannot be drawn with offset or zoom values (MgraControl() with M_DRAW_OFFSET_X or M_DRAW_OFFSET_Y set to values other than 0.0, and M_DRAW_ZOOM_X or M_DRAW_ZOOM_Y set to values other than 1.0).

This operation can draw in a 2D graphics list if no intensity buffer is specified (Src2MilId set to M_NULL).


You must specify a combination value from each of the following tables:
(summarize)
Click to summarize Src2MilId

Specifies whether the intensity results will be used when drawing the peaks.

(summarize)
Click to summarize M_NULL

Specifies to draw the peaks in the foreground color of the 2D graphics context specified using ContextGraId.

Click to summarize Uncorrected intensity map image buffer ID

Specifies an image buffer containing an uncorrected intensity map. When this buffer is specified, the peaks are drawn using their corresponding intensity value.

The image buffer must be properly formatted. This is the format that would result if you iterated calls to MimLocatePeak1d() and then drew the results using MimDraw() with M_DRAW_INTENSITY_MAP_ROW. For more information, see the Generating an uncorrected depth map subsection of the Peak intensity detection and depth maps section of Chapter 5: Specialized image processing.

If you supply an intensity buffer, the intensity buffer defines the drawing color when drawing each position, regardless of the setting of ContextGraId. ContextGraId must be set to M_DEFAULT.

(summarize)
Click to summarize Param1

Specifies the row in the source image buffers from which to read the results.

Click to summarize Param2

Specifies the size of the drawn representation of valid peaks. When drawing the peaks as dots (M_DOTS), this parameter specifies the diameter of the dots that are drawn at valid positions; when connecting the peaks using lines (M_LINES), this parameter specifies the width of the line segments that connect valid positions.

Note that when drawing into a 2D graphics list, there is no width. In this case, Param2 must be set to a value of 1.

(summarize)

In the following table, Src1MilId specifies the result buffer and Operation specifies the operation to perform with the specified result buffer.

function map For specifying to perform the draw operation with the result buffer(s) used in MimLocatePeak1d()
Click to summarize
Src1MilId
Description
Operation
Src2MilId
Param1
Param2
Click to summarize Locate peak 1D result buffer ID

Specifies a result buffer allocated using MimAllocResult() with M_LOCATE_PEAK_1D_RESULT and used in MimLocatePeak1d() operations.

(summarize)
Click to summarize 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.

Note that if the result buffer contains results from multiple frames, and you specify to draw all results (M_ALL), each frame's results will be drawn into a separate row, beginning at the row index specified with Param1.

(summarize)
Click to summarize Src2MilId

This parameter must be set to M_NULL.

(summarize)
Click to summarize Param1

Specifies the row of the specified image buffer in which to write the position values. In the case of multiple peaks, the position of the first peak is drawn, as defined using MimControl() with M_SORT_CRITERION.

When drawing results from multiple frames, this parameter specifies the first row in which to draw.

(summarize)
Click to summarize Param2

Specifies the index of the frame(s) for which to draw position values. Set this parameter to 0 if not drawing results from multiple frames.

(summarize)
Click to summarize M_ALL

Specifies to draw results from all frames whose results have been accumulated in the result buffer.

Click to summarize 0 <= Value < M_NUMBER_OF_FRAMES

Specifies the index of the specific frame for which to draw results.

Click to summarize 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.

Note that if the result buffer contains results from multiple frames, and you specify to draw all results (M_ALL), each frame's results will be drawn into a separate row, beginning at the row index specified with Param1.

(summarize)
Click to summarize Src2MilId

This parameter must be set to M_NULL.

(summarize)
Click to summarize Param1

Specifies the row of the specified image buffer in which to write the intensity values. In the case of multiple peaks, the intensity value of the first peak is drawn, as defined using MimControl() with M_SORT_CRITERION.

When drawing results from multiple frames, this parameter specifies the first row in which to draw.

(summarize)
Click to summarize Param2

Specifies the index of the frame(s) for which to draw intensity values. Set this parameter to 0 if not drawing results from multiple frames.

(summarize)
Click to summarize M_ALL

Specifies to draw results from all frames whose results have been accumulated in the result buffer.

Click to summarize 0 <= Value < M_NUMBER_OF_FRAMES

Specifies the index of the specific frame for which to draw results.

Click to summarize M_DRAW_PEAKS

Draws the peaks at the position at which they were found in the original source image. It draws each peak using the foreground color of the specified 2D graphics context.

This operation cannot be rendered in world units (MgraControl() with M_INPUT_UNITS cannot be set to M_WORLD) when drawing in either an image buffer or a 2D graphics list. Additionally, this operation cannot be drawn with offset or zoom values (MgraControl() with M_DRAW_OFFSET_X or M_DRAW_OFFSET_Y set to values other than 0.0, and M_DRAW_ZOOM_X or M_DRAW_ZOOM_Y set to values other than 1.0).

(summarize)
Click to summarize Src2MilId

This parameter must be set to M_NULL.

(summarize)
Click to summarize Param1

Specifies the rank index of the peak from which to read the results, or specifies the frame and rank index, in the case of a result buffer with multiple frames.

(summarize)
Click to summarize
M_SELECT_PEAK(
MIL_INT Frame,
MIL_INT Rank
)

Specifies the frame and rank of the peak(s) for which to draw the requested result.

This macro is required if a MimLocatePeak1d() operation accumulated results from multiple frames in the result buffer (MimControl() with M_NUMBER_OF_FRAMES set to a value greater than 1).

(summarize)
Parameters

Specifies the index of the frame for which the result was stored.

Value >= 0

Specifies the index of the specific frame.

Specifies the peak(s) for which to draw the requested result.

M_ALL

Specifies all peaks.

Value >= 0

Specifies the rank of the specific peak.

Click to summarize M_ALL

Specifies to draw all the peaks.

Click to summarize Value >= 0

Specifies the index of the peak to draw.

Click to summarize Param2

Specifies the size of the drawn representation of valid peaks. When drawing the peaks as dots (M_DOTS), this parameter specifies the diameter of the dots that are drawn at valid positions; when connecting the peaks using lines (M_LINES), this parameter specifies the width of the line segments that connect valid positions.

Note that when drawing into a 2D graphics list, there is no width. In this case, whatever value is specified for Param2 will be ignored.

(summarize)
Combination values for M_DRAW_PEAKS (when Src1MilId=Uncorrected depth map image buffer ID).

You must add one of the following values to the above-mentioned value to specify the style in which to draw.

function map For specifying the style in which to draw
Click to summarize
Combination value
Description
Click to summarize M_CROSS

Specifies to draw the valid result positions as crosses. The destination buffer must be a 2D graphics list.

When M_CROSS is specified, only valid positions are drawn; if a peak was not found for a row/column, nothing will be drawn for that row/column.

(summarize)
Click to summarize M_DOTS

Specifies to draw the valid result positions as dots.

When M_DOTS is specified, only valid positions are drawn; if a peak was not found for a row/column, nothing will be drawn for that row/column.

(summarize)
Click to summarize M_LINES

Specifies to draw line segments between valid positions.

This is the default value.

(summarize)
Combination values for M_DRAW_PEAKS (when Src1MilId=Uncorrected depth map image buffer ID).

You must add one of the following values to the above-mentioned value to specify the direction in which the peak detection was performed.

function map For specifying the direction in which the peak detection was performed
Click to summarize
Combination value
Description
Click to summarize M_HORIZONTAL

Specifies that the peak detection was performed in the horizontal direction.

Click to summarize M_VERTICAL

Specifies that the peak detection was performed in the vertical direction.

This is the default value.

(summarize)
Compilation information
Header Include mil.h.
Library Use mil.lib; milim.lib.
DLL Requires mil.dll; milim.dll.
DEFAULT PROC NONE PROC NONE PROC NONE DEFAULT FIXED POINT n AUTO SCALE SATURATION DEAD PIXEL CONTEXT DRAW DEAD PIXELS FLAT FIELD CONTEXT DRAW DARK IMAGE DRAW FLAT IMAGE DRAW OFFSET IMAGE MATCH CONTEXT DRAW MASK DRAW MODEL DRAW AUG IMAGE DRAW IMAGE ORIENTATION NULL DRAW GLCM MATRIX DRAW STAT RESULT NULL STAT GLCM CONTRAST STAT GLCM CORRELATION STAT GLCM DISSIMILARITY STAT GLCM ENERGY STAT GLCM ENTROPY STAT GLCM HOMOGENEITY STAT MAX STAT MAX ABS STAT MEAN STAT MIN STAT MIN ABS STAT STANDARD DEVIATION STAT SUM STAT SUM ABS STAT SUM OF SQUARES DRAW WAVELET DRAW WAVELET WITH PADDING IMAGINARY PART REAL PART PROC DRAW PEAKS NULL PROC DRAW DEPTH MAP ROW NULL ALL NUMBER OF FRAMES DRAW INTENSITY MAP ROW NULL ALL NUMBER OF FRAMES DRAW PEAKS NULL ALL ALL CROSS DOTS LINES HORIZONTAL VERTICAL M_FIXED_POINT + n