MIL_ID ImageBufId, | //in |
MIL_INT StartX, | //in |
MIL_INT StartY, | //in |
MIL_INT EndX, | //in |
MIL_INT EndY, | //in |
MIL_INT64 Mode, | //in |
MIL_INT *NbPixelsPtr, | //out |
void *UserArrayPtr | //out |
This function reads the series of pixels along a theoretical line (defined by coordinates) from an image and stores their values in a user-defined array. The Bresenham algorithm is used to determine the theoretical line.
If the source buffer is compressed, MIL decompresses the data before copying it to the user-supplied array.
Specifies the identifier of the source image buffer. This must be a single-band (monochrome) buffer.
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.
Specifies the horizontal pixel offset of the starting position of the line, relative to the top-left pixel of the source buffer.
Specifies the vertical pixel offset of the starting position of the line, relative to the top-left pixel of the source buffer.
Specifies the horizontal pixel offset of the finishing position of the line, relative to the top-left pixel of the source buffer.
Specifies the vertical pixel offset of the finishing position of the line, relative to the top-left pixel of the source buffer.
Specifies the operation mode. Reserved for future expansion. This parameter must be set to M_DEFAULT.
Specifies the address of the variable in which to write the number of pixels found along the theoretical line. You can set this parameter to M_NULL if you don't want this value to be evaluated.
Specifies the address of the user array in which to store the pixels from the image buffer. Ensure that the user array is large enough to receive the data to be stored. To determine the required size of the array, you can set this parameter to M_NULL and pass a non-null address to NbPixelsPtr, which will store the required size of the array. In this case, nothing is read from the image buffer.
Header | Include mil.h. |
Library | Use mil.lib. |
DLL | Requires mil.dll. |