MIL_ID SrcImageBufId, | //in |
MIL_ID ProjResultImId, | //in |
MIL_DOUBLE ProjectionAngle | //in |
This function projects a two-dimensional buffer into a one-dimensional buffer from the specified angle, and writes results to the specified projection result buffer. The results are generated by adding all pixel values along each diagonal in the image at the specified projection angle. The 90° projection of the image is known as the row profile; the 0° projection as the column profile.
Note that, if the sum of any diagonal is larger than the depth of the result buffer, the result will be undefined.
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 image. This parameter must be given an image buffer identifier. The buffer must be 1-band.
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).
The source image buffer must be unsigned monochrome 8- or 16-bit, M_BGR32 packed, or floating-point.
Specifies the identifier of the destination of the projection results. This parameter must be given the identifier of an image processing result buffer allocated with MimAllocResult() and an M_PROJ_LIST type. The buffer should have as many locations as there are lines to project in the image at the specified angle.
You can read the projection values from the result buffer, using MimGetResult1d() or MimGetResult(), specifying M_VALUE as the result type.
The result buffer must be floating-point.
Specifies the angle of projection, in degrees. Predefined projection angles are the following:
For specifying the angle of projection in
degrees
|
|||||||||||||||||||||||||||||||||||||||
Value |
Description
|
MIL system-specific tooltip (†) |
|||||||||||||||||||||||||||||||||||||
M_0_DEGREE |
Specifies a 0° projection (column profile). (more details...) |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s | ||||||||||||||||||
MIL system specific | |||||||||||||||||||||||||||||||||||||||
Source buffer must have a number of lines that is a multiple of 4 if this number is smaller than the number of locations in the result buffer. |
† | d | |||||||||||||||||||||||||||||||||||||
M_90_DEGREE |
Specifies a 90° projection (row profile). |
† | a | b | c | d | e | f | g | h | i | j | k | l | m | n | o | p | q | r | s |
Header | Include mil.h. |
Library | Use mil.lib; milim.lib. |
DLL | Requires mil.dll; milim.dll. |