Table: | For point, edge, stripe, and circle markers |
Table: | For point, edge, and stripe markers |
Table: | For edge, stripe, and circle markers |
Table: | For edge and stripe markers |
Table: | For point markers |
Table: | For stripe markers |
Table: | For circle markers |
MIL_ID MarkerId, | //in |
MIL_INT64 CharacteristicToSet, | //in |
MIL_DOUBLE FirstValue, | //in |
MIL_DOUBLE SecondValue | //in |
This function sets an essential characteristic of a marker. Essential characteristics are used in determining the location of an edge, stripe, or circle marker in a target image, or specifying the position of point markers, which are generally used as a reference marker. MmeasFindMarker() locates the edges, stripes, or circle that best correspond to the specified marker's characteristics. A marker's characteristics should describe the marker as accurately as possible to ensure that it will be successfully located in an image.
Specifies the type of characteristic to set.
See the Parameter associations section for possible values that can be specified.
Specifies the first value to assign to the characteristic.
See the Parameter associations section for possible values that can be specified.
Specifies the second value to assign to the characteristic. If only one value is to be returned, it will be returned to FirstValue and SecondValue should be set to M_NULL.
See the Parameter associations section for possible values that can be specified.
The tables below list possible values for the CharacteristicToSet, FirstValue, and SecondValue parameters.
The following CharacteristicToSet and corresponding FirstValue and SecondValue parameter settings are used to specify the expected measurement marker characteristics, for point, edge, stripe, and circle markers.
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For point, edge, stripe, and circle
markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_MARKER_REFERENCE |
Sets the offset at which to place the marker's reference position, relative to the marker's actual position. The reference position is only used in calculations between two markers (MmeasCalculate()).
By default, the marker's reference position is the same as its actual position (the default offset is 0). (summarize)Sets the offset at which to place the marker's reference position, relative to the marker's actual position. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-offset at which to place the marker's reference position. INQ (summarize)Specifies the X-offset at which to place the marker's reference position. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-offset value, in the same units as the input coordinate system specified using M_MARKER_REFERENCE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-offset at which to place the marker's reference position. INQ (summarize)Specifies the Y-offset at which to place the marker's reference position. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-offset value, in the same units as the input coordinate system specified using M_MARKER_REFERENCE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_MARKER_REFERENCE_INPUT_UNITS |
Sets the units with which to interpret M_MARKER_REFERENCE. This essentially sets the input coordinate system to use. (summarize)Sets the units with which to interpret M_MARKER_REFERENCE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the value in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the value in world units, according to the relative coordinate system. If world units are specified, calling MmeasDraw() to draw expected marker characteristics or MmeasFindMarker() generates an error if the operation is not performed on a calibrated image. (summarize)Specifies to interpret the value in world units, according to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_RESULT_OUTPUT_UNITS |
Sets whether to return results in pixels or world units. This essentially sets the output coordinate system to use. (summarize)Sets whether to return results in pixels or world units. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ACCORDING_TO_CALIBRATION. |
||||||||||||||||||||||||||||||||||||||
M_ACCORDING_TO_CALIBRATION |
Specifies that results are returned in world units if the result was calculated on an image associated with a camera calibration context; otherwise, specifies that results are returned in pixel units. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies that results are returned in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies that results are returned in world units, according to the relative coordinate system. If world units are specified, calling MmeasGetResult() or MmeasGetResultSingle() generates an error if the result was not calculated on a calibrated image. (summarize)Specifies that results are returned in world units, according to the relative coordinate system. (more details...) |
For point, edge, and stripe markers, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For point, edge, and stripe markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_NUMBER |
Sets the number of edges or stripes to locate in the box search region, or the number of points to explicitly define (points are typically used as a reference marker). In the first case, this can be referred to as the number of marker occurrences. When M_NUMBER is set to a value greater than 1, the marker is considered a multiple-occurrence marker. Note that a circle marker cannot be set as a multiple-occurrence marker. For edges and stripes, unless a minimum number (M_NUMBER_MIN) is specified, no results will be returned if the number of marker occurrences found falls below M_NUMBER. (summarize)Sets the number of edges or stripes to locate in the box search region, or the number of points to explicitly define (points are typically used as a reference marker). (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 1. |
||||||||||||||||||||||||||||||||||||||
M_ALL |
Specifies that the search should locate all edges or stripes in the box search region. This setting cannot be used for a point marker. If using M_ALL and M_NUMBER_MIN is set to M_DEFAULT, M_NUMBER_MIN is ignored and MIL will find as many marker occurrences as it can in the image. However, if M_NUMBER_MIN is set to a value other than M_DEFAULT, this value is respected and results are returned, provided that the specified minimum number of markers are found. (summarize)Specifies that the search should locate all edges or stripes in the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the number of edges or stripes to locate, or point markers to define. |
For edge, stripe, and circle markers, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For edge, stripe, and circle markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_MIN |
Sets the minimum edgevalue required for it to be considered an occurrence of the marker. MIL establishes edgevalues by taking the normalized first derivative of the intensity profile, which generally resembles a peak when an edge is present. When searching for multiple edges, you might need to further constrain the edgevalues that MIL considers, using M_EDGEVALUE_VAR_MIN. (summarize)Sets the minimum edgevalue required for it to be considered an occurrence of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 2.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the minimum edgevalue. A setting of 0.0 indicates that MIL considers all edgevalues, while a setting of 100.0 indicates that MIL only considers the greatest possible edgevalue. The greatest possible edgevalue results from a perfectly straight, perfectly white to perfectly black (or vice versa) grayscale transition over one pixel. If you set the minimum edgevalue to a very low value, MmeasFindMarker() can take longer to execute. (summarize)Specifies the minimum edgevalue. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_EDGEVALUE_VAR_MIN |
Sets the minimum prominence required for an edge peak, for it to be considered an occurrence of the marker. To determine if the minimum prominence is met, MIL establishes a local threshold for each peak by subtracting M_EDGEVALUE_VAR_MIN from it. The portion of the profile above the local threshold that contains the edge peak can be referred to as the peak's interval, provided that the profile eventually dips below the local threshold on both sides of its edge peak. For MIL to consider a peak to be an edge, there must be no edgevalues greater than that peak within its interval. If the local threshold calculated with M_EDGEVALUE_VAR_MIN is less than M_EDGEVALUE_MIN, the local threshold equals M_EDGEVALUE_MIN. M_EDGEVALUE_VAR_MIN is typically used by advanced applications where you are trying to find multiple neighboring edges in the search region, which are formed such that the foreground of the first edge becomes the background of the next edge. (summarize)Sets the minimum prominence required for an edge peak, for it to be considered an occurrence of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 100.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the minimum prominence. A setting of 0.0 indicates no prominence; that is, MIL only considers the maximum edgevalue of the peak's interval. A setting of 100.0 (default) indicates the greatest possible prominence; that is, MIL considers all edgevalues of the peak's interval that are above M_EDGEVALUE_MIN. In this case, M_EDGEVALUE_VAR_MIN has no effect. (summarize)Specifies the minimum prominence. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FILTER_SMOOTHNESS |
Sets the degree of smoothness (strength of denoising) applied to the internal projection buffer of the search region during the edge extraction. The recursive edge extraction process involves a denoising operation. Note that M_FILTER_SMOOTHNESS is only available if M_FILTER_TYPE is set to M_SHEN. (summarize)Sets the degree of smoothness (strength of denoising) applied to the internal projection buffer of the search region during the edge extraction. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 50.0. |
||||||||||||||||||||||||||||||||||||||
0.0 <= Value <= 100.0 |
Specifies the smoothness value. A value of 100.0 results in a strong noise reduction effect, while a value of 0.0 has almost no noise reduction effect. (summarize)Specifies the smoothness value. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_FILTER_TYPE |
Sets the type of the first derivative filter with which to perform the edge extraction. The edgevalue calculated for each projection value of the search region is dependent on this setting. (summarize)Sets the type of the first derivative filter with which to perform the edge extraction. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_EULER. |
||||||||||||||||||||||||||||||||||||||
M_EULER |
Specifies an Euler FIR filter. This filter performs a non-recursive edge extraction operation with a predefined kernel of size 2: [-1,1]. This filter is faster but more sensitive to noise, compared to M_PREWITT filter. (summarize)Specifies an Euler FIR filter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_PREWITT |
Specifies a Prewitt FIR filter. This filter performs a non-recursive edge extraction operation with a predefined kernel of size 3: [-1,0,1]. This filter is slower but less sensitive to noise, compared to M_EULER filter. (summarize)Specifies a Prewitt FIR filter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SHEN |
Specifies a Shen-Castan Infinite Support Exponential filter. This is an exponential weighting function, of the general form: This filter performs a recursive edge extraction operation using an IIR filter. If this filter actually used a kernel, the kernel size would be theoretically infinite. This IIR filter is slower than FIR filters (M_EULER or M_PREWITT). However, this filter is less sensitive to noise and provides more accurate results. You can also control the strength of denoising applied to the projection buffer of the search region during the edge extraction, using the M_FILTER_SMOOTHNESS setting. (summarize)Specifies a Shen-Castan Infinite Support Exponential filter. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAX_ASSOCIATION_DISTANCE |
Sets the maximum distance between a marker's edge (either straight or circular) and its associated subedges. The subedges' positions are points extracted from the marker's subregions that are used during the fit operation. For edge and stripe markers, M_MAX_ASSOCIATION_DISTANCE is measured perpendicular from the fitted edge position, along to the search direction. For circle markers, M_MAX_ASSOCIATION_DISTANCE is measured radially from the fitted circle perimeter. Subedges falling outside the specified maximum distance are considered outliers and are not used to perform the marker's line or circle fit operation. For edge and stripe markers, this leads to fitted edges more in line with the marker orientation and, for circle markers, this ensures that the fitted circle will be fitted on subedges roughly at the same distance from the fitted circle center. (summarize)Sets the maximum distance between a marker's edge (either straight or circular) and its associated subedges. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_MAX_POSSIBLE_VALUE. |
||||||||||||||||||||||||||||||||||||||
M_MAX_POSSIBLE_VALUE |
Specifies that there is no maximum distance; the entire search region is searched for subedges. |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the distance, in the units of the input coordinate system specified using M_MAX_ASSOCIATION_DISTANCE_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_MAX_ASSOCIATION_DISTANCE_INPUT_UNITS |
Sets the units with which to interpret M_MAX_ASSOCIATION_DISTANCE. This essentially sets the input coordinate system to use. (summarize)Sets the units with which to interpret M_MAX_ASSOCIATION_DISTANCE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the value in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the value in world units, according to the relative coordinate system. If world units are specified, calling MmeasDraw() to draw expected marker characteristics or MmeasFindMarker() generates an error if the operation is not performed on a calibrated image. (summarize)Specifies to interpret the value in world units, according to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POLARITY |
Specifies the polarity of the marker. Polarity indicates whether an edge must be a rising edge (increase in grayscale value) or a falling edge (decrease in grayscale value). (summarize)Specifies the polarity of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the polarity of the edge. For stripe markers, this is the polarity of the first edge. INQ (summarize)Specifies the polarity of the edge. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that polarity is not considered. |
||||||||||||||||||||||||||||||||||||||
M_NEGATIVE |
Specifies that the polarity of the edge is negative (falling edge). For circle markers, this indicates that the inside of the ring-shaped region has a greater grayscale value (falling edge from inside to outside). (summarize)Specifies that the polarity of the edge is negative (falling edge). (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POSITIVE |
Specifies that the polarity of the edge is positive (rising edge). For circle markers, this indicates that the inside of the ring-shaped region has a lower grayscale value (rising edge from inside to outside). (summarize)Specifies that the polarity of the edge is positive (rising edge). (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the polarity of the second edge of a stripe. INQ (summarize)Specifies the polarity of the second edge of a stripe. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_OPPOSITE. |
||||||||||||||||||||||||||||||||||||||
M_NULL |
Specifies that this parameter does not apply. This setting must be used for edge and circle markers. (summarize)Specifies that this parameter does not apply. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the polarity is not considered. |
||||||||||||||||||||||||||||||||||||||
M_NEGATIVE |
Specifies that the polarity of the second edge is negative (falling edge). |
||||||||||||||||||||||||||||||||||||||
M_OPPOSITE |
Specifies that the polarity of the second edge of a stripe marker is the opposite of that of the first edge. |
||||||||||||||||||||||||||||||||||||||
M_POSITIVE |
Specifies that the polarity of the second edge is positive (rising edge). |
||||||||||||||||||||||||||||||||||||||
M_SAME |
Specifies that the polarity of the second edge of a stripe marker is the same as that of the first edge. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_CLIPPING |
Sets whether MIL can automatically clip the marker's search region, when it falls outside the image. This setting is ignored unless the search region's size is explicitly set. That is, the values specified with M_BOX_SIZE are not set to M_DEFAULT. (summarize)Sets whether MIL can automatically clip the marker's search region, when it falls outside the image. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the search region cannot be automatically clipped. In this case, if the search region falls outside the image, the marker cannot be found (unless you are using subregions). (summarize)Specifies that the search region cannot be automatically clipped. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_MAXIMIZE_AREA |
Specifies that, if the search region falls outside the image, MIL can automatically clip the region according to the best valid area in which to search, and the marker can still be found. The modified region is internally created by MIL; the actual search region that you defined is never altered. The automatically determined region must be inscribed by the defined search region, must be within the boundaries of the image, and must meet the specified M_SEARCH_REGION_CLIPPING_... conditions. MIL will not clip the region if it cannot adhere to all of these requirements. (summarize)Specifies that, if the search region falls outside the image, MIL can automatically clip the region according to the best valid area in which to search, and the marker can still be found. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_CLIPPING_MIN_AREA |
Sets the minimum area requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (summarize)Sets the minimum area requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the minimum area required for the clipped region, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_CLIPPING_MIN_HEIGHT |
Sets the minimum width requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (summarize)Sets the minimum width requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the minimum height required for the clipped region, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_CLIPPING_MIN_WIDTH |
Sets the minimum width requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (summarize)Sets the minimum width requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0.0. |
||||||||||||||||||||||||||||||||||||||
Value >= 0.0 |
Specifies the minimum width required for the clipped region, in pixels. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_CLIPPING_PRESERVE_CENTER |
Sets the center requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. All the settings are available to edge and stripe markers, but only M_DEFAULT and M_AUTO are available to circle markers. (summarize)Sets the center requirement for the clipped region that can be internally created when using M_SEARCH_REGION_CLIPPING with M_MAXIMIZE_AREA. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_AUTO. |
||||||||||||||||||||||||||||||||||||||
M_ALONG_HEIGHT |
Specifies that the center, along the height of the defined search region, must be preserved in the clipped region. This setting is not available for circle markers. (summarize)Specifies that the center, along the height of the defined search region, must be preserved in the clipped region. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_ALONG_WIDTH |
Specifies that the center, along the width of the defined search region, must be preserved in the clipped region. This setting is not available for circle markers. (summarize)Specifies that the center, along the width of the defined search region, must be preserved in the clipped region. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO |
Specifies that MIL will determine how the center of the defined search region will be preserved in the clipped region. For edge and stripe markers, M_AUTO is the same as M_NONE. For circle markers, M_AUTO is the only possible value. (summarize)Specifies that MIL will determine how the center of the defined search region will be preserved in the clipped region. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NONE |
Specifies that the clipped region need not preserve the center of the defined search region. This setting is not available for circle markers. (summarize)Specifies that the clipped region need not preserve the center of the defined search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_INPUT_UNITS |
Sets the units with which to interpret M_BOX_CENTER, M_BOX_ORIGIN, M_BOX_SIZE, M_BOX_ANGLE, M_BOX_ANGLE_ACCURACY, M_BOX_ANGLE_TOLERANCE, M_BOX_ANGLE_DELTA_POS, M_BOX_ANGLE_DELTA_NEG, M_RING_CENTER, M_RING_RADII, and M_SUB_REGIONS_CHORD_ANGLE. This essentially sets the input coordinate system to use. (summarize)Sets the units with which to interpret M_BOX_CENTER, M_BOX_ORIGIN, M_BOX_SIZE, M_BOX_ANGLE, M_BOX_ANGLE_ACCURACY, M_BOX_ANGLE_TOLERANCE, M_BOX_ANGLE_DELTA_POS, M_BOX_ANGLE_DELTA_NEG, M_RING_CENTER, M_RING_RADII, and M_SUB_REGIONS_CHORD_ANGLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the values in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the values in world units, according to the relative coordinate system. If world units are specified, calling MmeasDraw() to draw expected marker characteristics or MmeasFindMarker() generates an error if the operation is not performed on a calibrated image. (summarize)Specifies to interpret the values in world units, according to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUB_REGIONS_NUMBER |
Sets the number of sections in which to divide the search region. Since a subregion of each section is processed, this number also corresponds to the number of subregions to process. For circle markers, this value will give each subregion the same area; that is, each subregion will occupy (360/M_SUB_REGIONS_NUMBER) o of the circle. For edge and stripe markers, if you specify one subregion when multiple subregions are required (for example, when using MmeasFindMarker() with M_DEFAULT, M_ANGLE, or M_LINE_EQUATION), MIL internally uses three subregions. (summarize)Sets the number of sections in which to divide the search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. For edge and stripe markers, the default is one. For circle markers, the default is eight. (summarize)Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
1 <= Value < 8 |
Specifies a number of sections (subregions) that can only be used for edge and stripe markers. |
||||||||||||||||||||||||||||||||||||||
Value >= 8 |
Specifies a number of sections (subregions) that can be used for edge, stripe, and circle markers. |
||||||||||||||||||||||||||||||||||||||
M_SUBPIXEL_MODE |
Sets how MIL calculates subpixel positions. (summarize)Sets how MIL calculates subpixel positions. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_LOCAL. |
||||||||||||||||||||||||||||||||||||||
M_GLOBAL |
Specifies that MIL calculates subpixel positions based on the entire region within which the edge is found. This mode is recommended when measuring wide edges. (summarize)Specifies that MIL calculates subpixel positions based on the entire region within which the edge is found. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LOCAL |
Specifies that MIL calculates subpixel positions based on the immediate neighborhood within which the edge's maximum edgevalue is found. This mode offers more precision, but can be less stable with wide edges. (summarize)Specifies that MIL calculates subpixel positions based on the immediate neighborhood within which the edge's maximum edgevalue is found. (more details...) |
For edge and stripe markers, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For edge and stripe markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE |
Sets the angle of the box search region. The center of rotation of the box search region is set with M_BOX_ANGLE_REFERENCE. (summarize)Sets the angle of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0°. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the content of the box search region is analyzed to automatically determine the angle of the marker. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 360 |
Specifies the angle of the box search region, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. An angle interpreted using the pixel coordinate system is always measured counter-clockwise. For information on the angle's direction of rotation when interpreting the angle according to the relative coordinate system, see the Angle convention in MIL subsection of the Working with real-world units section of Chapter 26: Calibrating your camera setup. (summarize)Specifies the angle of the box search region, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_ACCURACY |
Sets the accuracy of the angular search. This determines the size of the step angle to use once the approximate location of the marker is found. (summarize)Sets the accuracy of the angular search. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies the angle of accuracy to be equal to the angle of tolerance. |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 180.0 |
Specifies the accuracy of the angular search, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_DELTA_NEG |
Sets the negative range of angles within which to search for the marker. The search is performed between the range of angles defined by: (M_BOX_ANGLE - M_BOX_ANGLE_DELTA_NEG) to (M_BOX_ANGLE + M_BOX_ANGLE_DELTA_POS), inclusively, starting with an angle closest to that of M_BOX_ANGLE. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). (summarize)Sets the negative range of angles within which to search for the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default negative range of angles, in degrees. For a symmetrical stripe marker (a marker set with M_OPPOSITE), the default is 180.0. For an edge marker or a non-symmetrical stripe marker, the default is 360.0. (summarize)Specifies the default negative range of angles, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 360.0 |
Specifies the negative range of angles, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_DELTA_POS |
Sets the positive range of angles within which to search for the marker. The search is performed between the range of angles defined by: (M_BOX_ANGLE - M_BOX_ANGLE_DELTA_NEG) to (M_BOX_ANGLE + M_BOX_ANGLE_DELTA_POS), inclusively, starting with an angle closest to that of M_BOX_ANGLE. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). (summarize)Sets the positive range of angles within which to search for the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default positive range of angles, in degrees. For a symmetrical stripe marker (a marker set with M_OPPOSITE), the default is 180.0. For an edge marker or a non-symmetrical stripe marker, the default is 360.0. (summarize)Specifies the default positive range of angles, in degrees. (more details...) |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 360.0 |
Specifies the positive range of angles, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_MODE |
Enables the use of multiple-angle search, as specified by the settings of other M_BOX_ANGLE... characteristics. The angle of the marker with the highest match score is returned. For an edge marker, this is the score of the edge, and for a stripe marker, this is the mean score of the edges. (summarize)Enables the use of multiple-angle search, as specified by the settings of other M_BOX_ANGLE... characteristics. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the search should only be performed at the angle specified by M_BOX_ANGLE. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that multiple-angle search is enabled. |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_REFERENCE |
Sets the center of rotation to use when M_BOX_ANGLE is not zero. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). (summarize)Sets the center of rotation to use when M_BOX_ANGLE is not zero. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_BOX_CENTER. |
||||||||||||||||||||||||||||||||||||||
M_BOX_CENTER |
Specifies the center of the box search region as the center of rotation. Use the M_BOX_CENTER characteristic to set the coordinates of the center of the box search region. (summarize)Specifies the center of the box search region as the center of rotation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_ORIGIN |
Specifies the top-left corner of the box search region as the center of rotation. Use the M_BOX_ORIGIN characteristic to set the coordinates of the top-left corner of the box search region. (summarize)Specifies the top-left corner of the box search region as the center of rotation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BOX_ANGLE_TOLERANCE |
Sets the rotation tolerance of the marker. This is the full range of degrees within which a marker can be rotated from a box search region that is at a specific angle and still be found. This determines the step angle used for a multiple-angle search. (summarize)Sets the rotation tolerance of the marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 5.0. |
||||||||||||||||||||||||||||||||||||||
0.1 <= Value <= 360.0 |
Specifies the rotation tolerance, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_CENTER |
Sets the coordinates of the center of the box search region. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). When you change M_BOX_CENTER, MIL recalculates M_BOX_ORIGIN, relative to the new center position. Sets the coordinates of the center of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-coordinate of the center of the box search region. INQ (summarize)Specifies the X-coordinate of the center of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default X-coordinate of the center of the box search region. This depends on the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. If using pixel units, the default center is the center of the pixel coordinate system. If using world units, the default center is the origin of the relative coordinate system. (summarize)Specifies the default X-coordinate of the center of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the center of the box search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-coordinate of the center of the box search region. INQ (summarize)Specifies the Y-coordinate of the center of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default Y-coordinate of the center of the box search region. This depends on the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. If using pixel units, the default center is the center of the pixel coordinate system. If using world units, the default center is the origin of the relative coordinate system. (summarize)Specifies the default Y-coordinate of the center of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the center of the box search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_ORIGIN |
Sets the coordinates of the top-left corner of the box search region. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). When you change M_BOX_ORIGIN, MIL recalculates M_BOX_CENTER, relative to the new box origin. Sets the coordinates of the top-left corner of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-coordinate of the origin of the box search region. INQ (summarize)Specifies the X-coordinate of the origin of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default X-coordinate of the origin of the box search region. The default origin is the origin of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (summarize)Specifies the default X-coordinate of the origin of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the origin of the box search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-coordinate of the origin of the box search region. INQ (summarize)Specifies the Y-coordinate of the origin of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default Y-coordinate of the origin of the box search region. The default origin is the origin of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (summarize)Specifies the default Y-coordinate of the origin of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the origin of the box search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_BOX_SIZE |
Sets the width and height of the box search region. If M_SEARCH_REGION_INPUT_UNITS is set to M_WORLD, the Measurement module uses the world dimensions specified to estimate a rectangular box in pixel units. The module will then use this approximation for internal calculations. Note that the search region must fit entirely inside the target image, unless subregions are used or clipping is enabled. If don't use subregions or enable clipping, and you choose a location, size, or search angle that causes the box to extend beyond the edge of the target image, the marker cannot be found (MmeasGetResult() with M_VALID_FLAG will return M_FALSE). When you set the width and height of the search region, the search region expands or shrinks with respect to its origin, set with M_BOX_ORIGIN. When the width or height changes, MIL recalculates M_BOX_CENTER, relative to the box search region's origin. Note that if you have enabled clipping, the size of the box search region internally use might be smaller than the specified size. This is only a temporary effect; it does not change the specified size. For more information, see the Search region section of Chapter 16: Measurement. (summarize)Sets the width and height of the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the width of the box search region. INQ (summarize)Specifies the width of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to use the width of the entire target image. If you specify M_DEFAULT, and M_SEARCH_REGION_INPUT_UNITS is set to M_WORLD, you must also set the SecondValue parameter to M_DEFAULT; otherwise, an error will occur. (summarize)Specifies to use the width of the entire target image. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the width of the box search region within the target image, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. This value must be positive. (summarize)Specifies the width of the box search region within the target image, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the height of the box search region. INQ (summarize)Specifies the height of the box search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies to use the height of the entire target image. If you specify M_DEFAULT, and M_SEARCH_REGION_INPUT_UNITS is set to M_WORLD, you must also set the FirstValue parameter to M_DEFAULT; otherwise, an error will occur. (summarize)Specifies to use the height of the entire target image. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the height of the box search region within the target image, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. This value must be positive. (summarize)Specifies the height of the box search region within the target image, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DRAW_PROFILE_SCALE_OFFSET |
Sets the scale and offset to use when drawing the edge profile or edgevalue characteristics using MmeasDraw() with M_DRAW_EDGES_PROFILE, M_DRAW_EDGEVALUE_MIN_IN_PROFILE, M_DRAW_EDGEVALUE_PEAK_WIDTH_IN_PROFILE, or M_DRAW_POSITION_IN_PROFILE. Sets the scale and offset to use when drawing the edge profile or edgevalue characteristics using MmeasDraw() with M_DRAW_EDGES_PROFILE, M_DRAW_EDGEVALUE_MIN_IN_PROFILE, M_DRAW_EDGEVALUE_PEAK_WIDTH_IN_PROFILE, or M_DRAW_POSITION_IN_PROFILE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Sets the scale to use when drawing. The shape and proportions of the drawing are kept the same; only the size is affected. This can be useful for applications where the information being drawn is too small or too large to see clearly. INQ (summarize)Sets the scale to use when drawing. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO_SCALE_PROFILE |
Specifies to automatically compute the greatest scale factor that will fit the entire drawing within the destination buffer (or within the area that corresponds to the search region, if M_DRAW_IN_BOX is combined when drawing) after the offset has been applied. This is the default value. (summarize)Specifies to automatically compute the greatest scale factor that will fit the entire drawing within the destination buffer (or within the area that corresponds to the search region, if M_DRAW_IN_BOX is combined when drawing) after the offset has been applied. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > 0.0 |
Specifies the scale multiplier. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Sets the offset at which to draw the information from the middle of the height of the destination buffer or the area corresponding to the search region. The shape and proportions of the drawing are kept the same; only the location is affected. The middle is described as the center height of the image buffer or the profile's associated search region, and is at an offset of 0. INQ (summarize)Sets the offset at which to draw the information from the middle of the height of the destination buffer or the area corresponding to the search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_AUTO_OFFSET_PROFILE |
Specifies to automatically compute the offset such that the maximum and minimum of the drawing are touching the ends of the destination buffer (or the area that corresponds to the search region, if M_DRAW_IN_BOX is combined when drawing). This value can only be used when FirstValue is set to M_AUTO_SCALE_PROFILE. Note that this value is optimized for M_DRAW_EDGES_PROFILE. Using M_AUTO_OFFSET_PROFILE with other M_DRAW_..._PROFILE values might draw outside of the destination (image buffer or the area corresponding to the search region). This is the default value. (summarize)Specifies to automatically compute the offset such that the maximum and minimum of the drawing are touching the ends of the destination buffer (or the area that corresponds to the search region, if M_DRAW_IN_BOX is combined when drawing). (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the offset from the middle of the height of the destination buffer or the area corresponding to the search region. The ends of the destination buffer or the area corresponding to the search region correspond to offsets -100 and 100. There is no limit to the offset value. However, large values might cause the required drawing to be drawn outside the visible area. (summarize)Specifies the offset from the middle of the height of the destination buffer or the area corresponding to the search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NUMBER_MIN |
Sets the minimum number of edges or stripes to locate in the box search region. (summarize)Sets the minimum number of edges or stripes to locate in the box search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value. The default number of edges or stripes is the same as the value set in M_NUMBER. (summarize)Specifies the default value. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the minimum number of edges or stripes to locate. |
||||||||||||||||||||||||||||||||||||||
M_ORIENTATION |
Sets the orientation of the edge or stripe marker. (summarize)Sets the orientation of the edge or stripe marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_VERTICAL. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the orientation of the marker is unknown; both horizontal and vertical orientations are searched. |
||||||||||||||||||||||||||||||||||||||
M_HORIZONTAL |
Specifies that the marker has a horizontal orientation. |
||||||||||||||||||||||||||||||||||||||
M_VERTICAL |
Specifies that the marker has a vertical orientation. |
||||||||||||||||||||||||||||||||||||||
M_SEARCH_REGION_ANGLE_INTERPOLATION_MODE |
Sets the type of interpolation to use when searching for markers. This only has an effect when either M_BOX_ANGLE_MODE is enabled or M_BOX_ANGLE is set to a value other than 0. (summarize)Sets the type of interpolation to use when searching for markers. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_BILINEAR. |
||||||||||||||||||||||||||||||||||||||
M_BICUBIC |
Specifies bicubic interpolation. The new value is determined by taking a weighted average of the 16 values (4x4) that surround the source point. Note that the sum of the weights used for bicubic interpolation might be greater than one. If this occurs and the result reflects an overflow or underflow, the result is saturated. (summarize)Specifies bicubic interpolation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_BILINEAR |
Specifies bilinear interpolation. The new value is determined by taking a weighted average of the 4 values (2x2) that surround the source point. (summarize)Specifies bilinear interpolation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_NEAREST_NEIGHBOR |
Specifies nearest neighbor interpolation. The new value is that of the pixel closest to the source point. (summarize)Specifies nearest neighbor interpolation. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_SUB_REGIONS_OFFSET |
Sets the offset of the subregions, from the center point of each of their sections. Specify the offset as a percentage of the distance from the center point of the section to the maximum possible offset in each section. 100 corresponds to the maximum possible offset. The direction of the offset (X or Y) is taken from M_ORIENTATION, with positive values shifting the subregion down or to the right, and negative values shifting up or to the left. Note that subregions are offset as a group. (summarize)Sets the offset of the subregions, from the center point of each of their sections. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0. |
||||||||||||||||||||||||||||||||||||||
-100 <= Value <= 100 |
Specifies the offset of the subregions. |
||||||||||||||||||||||||||||||||||||||
M_SUB_REGIONS_SIZE |
Sets the size of the subregions, as a percentage of their section. Subregions are always rectangular and extend from one edge of the box search region to the other in the orientation direction. If made smaller than their section, the subregions become thinner and occupy the specified percentage of their section. In this case, subregions will remain centered unless moved with M_SUB_REGIONS_OFFSET. Note that the size of subregions are set as a group. (summarize)Sets the size of the subregions, as a percentage of their section. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 100%. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 100 |
Specifies the size of the subregions, as a percentage. If the size is set to 100, subregions will be evenly distributed within the box search region, with no space between them. (summarize)Specifies the size of the subregions, as a percentage. (more details...) |
For point markers only, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For point markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_MULTIPLE_POINT_ANGLE |
Sets the angle at which subsequent points are placed, in a theoretical line, for a multiple point marker (at the interval set with M_SPACING and proceeding from the coordinates defined by M_POSITION). (summarize)Sets the angle at which subsequent points are placed, in a theoretical line, for a multiple point marker (at the interval set with M_SPACING and proceeding from the coordinates defined by M_POSITION). (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 0°. |
||||||||||||||||||||||||||||||||||||||
0 <= Value <= 360 |
Specifies the angle for a multiple point marker, in degrees, in the units of the input coordinate system specified using M_POINT_INPUT_UNITS. An angle interpreted according to the pixel coordinate system is always measured counter-clockwise. For information on the angle's direction of rotation when interpreting the angle according to the relative coordinate system, see the Angle convention in MIL subsection of the Working with real-world units section of Chapter 26: Calibrating your camera setup. (summarize)Specifies the angle for a multiple point marker, in degrees, in the units of the input coordinate system specified using M_POINT_INPUT_UNITS. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POINT_INPUT_UNITS |
Sets the units with which to interpret M_POSITION, M_SPACING, and M_MULTIPLE_POINT_ANGLE. This essentially sets the input coordinate system to use. (summarize)Sets the units with which to interpret M_POSITION, M_SPACING, and M_MULTIPLE_POINT_ANGLE. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the values in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the values in world units, according to the relative coordinate system. If world units are specified, calling MmeasDraw() to draw expected marker characteristics generates an error if the operation is not performed on a calibrated image. (summarize)Specifies to interpret the values in world units, according to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_POSITION |
Sets the coordinates of a point marker. For a multiple point marker, this defines the position of the first point. (summarize)Sets the coordinates of a point marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-coordinate of the point marker. INQ (summarize)Specifies the X-coordinate of the point marker. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the position is invalid. When a point marker is allocated, M_POSITION is set to M_ANY. After allocation, you must explicitly set a position (X-coordinate, Y-coordinate); otherwise, an error will occur. (summarize)Specifies that the position is invalid. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the point marker, in the units of the input coordinate system specified using M_POINT_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-coordinate of the point marker. INQ (summarize)Specifies the Y-coordinate of the point marker. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the position is invalid. When a point marker is allocated, M_POSITION is set to M_ANY. After allocation, you must explicitly set a position (X-coordinate, Y-coordinate); otherwise, an error will occur. (summarize)Specifies that the position is invalid. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the point marker, in the units of the input coordinate system specified using M_POINT_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_SPACING |
Sets the spacing (distance) between points of a point marker. This setting is only available for multiple point markers. (summarize)Sets the spacing (distance) between points of a point marker. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that the spacing is invalid. When a point marker is allocated, M_SPACING is set to M_ANY. After allocation, you must explicitly set the spacing; otherwise, an error will occur. (summarize)Specifies that the spacing is invalid. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the spacing, in the units of the input coordinate system specified using M_POINT_INPUT_UNITS. |
For stripe markers only, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For stripe markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_INCLUSION_POINT |
Sets a position (inclusion point) in the target image that must either be included or not included in the stripe marker found, depending on M_INCLUSION_POINT_INSIDE_STRIPE. If you specify an inclusion point, you must also set M_INCLUSION_POINT_INSIDE_STRIPE to M_YES or M_NO; otherwise, the specified inclusion point is ignored. INQ (summarize)Sets a position (inclusion point) in the target image that must either be included or not included in the stripe marker found, depending on M_INCLUSION_POINT_INSIDE_STRIPE. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-coordinate of the inclusion point. (summarize)Specifies the X-coordinate of the inclusion point. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies no inclusion point. In this case, M_INCLUSION_POINT_INSIDE_STRIPE is ignored. (summarize)Specifies no inclusion point. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the inclusion point's X-coordinate, in the units of the input coordinate system specified using M_INCLUSION_POINT_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-coordinate of the inclusion point. (summarize)Specifies the Y-coordinate of the inclusion point. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies no inclusion point. In this case, M_INCLUSION_POINT_INSIDE_STRIPE is ignored. (summarize)Specifies no inclusion point. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the inclusion point's Y-coordinate, in the units of the input coordinate system specified using M_INCLUSION_POINT_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_INCLUSION_POINT_INPUT_UNITS |
Sets the units with which to interpret M_INCLUSION_POINT. This essentially sets the input coordinate system to use. (summarize)Sets the units with which to interpret M_INCLUSION_POINT. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_PIXEL. |
||||||||||||||||||||||||||||||||||||||
M_PIXEL |
Specifies to interpret the value in pixel units, according to the pixel coordinate system. |
||||||||||||||||||||||||||||||||||||||
M_WORLD |
Specifies to interpret the value in world units, according to the relative coordinate system. If world units are specified, calling MmeasDraw() to draw expected marker characteristics or MmeasFindMarker() generates an error if the operation is not performed on a calibrated image. (summarize)Specifies to interpret the value in world units, according to the relative coordinate system. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_INCLUSION_POINT_INSIDE_STRIPE |
Sets whether the stripe marker found must contain the inclusion point (M_INCLUSION_POINT). (summarize)Sets whether the stripe marker found must contain the inclusion point (M_INCLUSION_POINT). (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_ANY. |
||||||||||||||||||||||||||||||||||||||
M_ANY |
Specifies that M_INCLUSION_POINT is ignored. |
||||||||||||||||||||||||||||||||||||||
M_NO |
Specifies that only stripes that have the inclusion point falling outside its two outer edges can be found. |
||||||||||||||||||||||||||||||||||||||
M_YES |
Specifies that only stripes that have the inclusion point falling between its two outer edges can be found. |
For circle markers only, the CharacteristicToSet and corresponding FirstValue and SecondValue parameters can be set to the following:
Note that the SecondValue parameter should be set to M_NULL if no parameter setting is required.
For circle markers
|
|||||||||||||||||||||||||||||||||||||||
|
Description | ||||||||||||||||||||||||||||||||||||||
FirstValue | |||||||||||||||||||||||||||||||||||||||
SecondValue | |||||||||||||||||||||||||||||||||||||||
M_CIRCLE_ACCURACY |
Sets the accuracy of the circle's fit operation. (summarize)Sets the accuracy of the circle's fit operation. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_HIGH. |
||||||||||||||||||||||||||||||||||||||
M_HIGH |
Specifies that the circle's fit operation will be performed with high accuracy. This typically takes longer than low accuracy, but can produce more precise results. (summarize)Specifies that the circle's fit operation will be performed with high accuracy. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_LOW |
Specifies that the circle's fit operation will be performed with low accuracy. This is typically faster than high accuracy, but can produce less precise results, particularly with noisy or badly contrasted images. (summarize)Specifies that the circle's fit operation will be performed with low accuracy. (more details...) |
||||||||||||||||||||||||||||||||||||||
M_CIRCLE_INSIDE_SEARCH_REGION |
Sets whether the circle's fit operation can result in a circle that is outside the ring search region. (summarize)Sets whether the circle's fit operation can result in a circle that is outside the ring search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Same as M_DISABLE. |
||||||||||||||||||||||||||||||||||||||
M_DISABLE |
Specifies that the circle's fit operation can result in a circle that is outside the ring search region. |
||||||||||||||||||||||||||||||||||||||
M_ENABLE |
Specifies that the circle's fit operation cannot result in a circle that is outside the ring search region. |
||||||||||||||||||||||||||||||||||||||
M_RING_CENTER |
Sets the coordinates of the center of the ring search region. The ring's center is considered to be its position. Note that at least three valid subregions must be within the target image for the circle marker to be found (even if clipping is enabled). (summarize)Sets the coordinates of the center of the ring search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the X-coordinate of the center of the ring search region. INQ (summarize)Specifies the X-coordinate of the center of the ring search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default X-coordinate of the center of the ring search region. This depends on the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. If using pixel units, the default center is the center of the pixel coordinate system. If using world units, the default center is the origin of the relative coordinate system. (summarize)Specifies the default X-coordinate of the center of the ring search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the X-coordinate of the center of the ring search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the Y-coordinate of the center of the ring search region. INQ (summarize)Specifies the Y-coordinate of the center of the ring search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default Y-coordinate of the center of the ring search region. This depends on the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. If using pixel units, the default center is the center of the pixel coordinate system. If using world units, the default center is the origin of the relative coordinate system. (summarize)Specifies the default Y-coordinate of the center of the ring search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value |
Specifies the Y-coordinate of the center of the ring search region, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_RING_RADII |
Sets the inner and outer radius of the ring search region. The radii values are set according to the region's center (M_RING_CENTER). The inner and outer radius must be set concurrently. The inner radius must be less than the outer radius; this creates a ring within which the circle must be found. (summarize)Sets the inner and outer radius of the ring search region. (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies the inner radius of the ring search region. INQ (summarize)Specifies the inner radius of the ring search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies an inner radius of 0.0. If the outer radius is set to M_DEFAULT, the inner radius must also be set to M_DEFAULT; otherwise, an error will occur. (summarize)Specifies an inner radius of 0.0. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value >= 0 |
Specifies the inner radius, relative to the center of the ring search region, in the units specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
SecondValue |
Specifies the outer radius of the ring search region. INQ (summarize)Specifies the outer radius of the ring search region. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default outer radius. This value corresponds to either half the target image's width (X-size x 0.5) or half its height (Y-size x 0.5), depending on which is smaller. Note that if the outer radius is set to M_DEFAULT, the inner radius must also be set to M_DEFAULT; otherwise, an error will occur. (summarize)Specifies the default outer radius. (more details...) |
||||||||||||||||||||||||||||||||||||||
Value > Inner radius |
Specifies the outer radius, relative to the center of the ring search region, in the units specified using M_SEARCH_REGION_INPUT_UNITS. |
||||||||||||||||||||||||||||||||||||||
M_SUB_REGIONS_CHORD_ANGLE |
Sets the angle with which to set the ring search region's outer ring segment (chord). The projection of this chord segment determines the dimension of the rectangular subregion that is perpendicular to radial direction. (summarize)Sets the angle with which to set the ring search region's outer ring segment (chord). (more details...) |
||||||||||||||||||||||||||||||||||||||
FirstValue |
Specifies one of the following.INQ (summarize)Specifies one of the following. INQ (more details...) |
||||||||||||||||||||||||||||||||||||||
M_DEFAULT |
Specifies the default value; the default value is 10.0 degrees. |
||||||||||||||||||||||||||||||||||||||
0.0 < Value <= 45.0 |
Specifies the angle, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. An angle interpreted according to the pixel coordinate system is always measured counter-clockwise. For information on the angle's direction of rotation when interpreting the angle according to the relative coordinate system, see the Angle convention in MIL subsection of the Working with real-world units section of Chapter 26: Calibrating your camera setup. (summarize)Specifies the angle, in degrees, in the units of the input coordinate system specified using M_SEARCH_REGION_INPUT_UNITS. (more details...) |
void MmeasSetMarkerInt64
(MIL_ID MarkerId,
MIL_INT64 CharacteristicToSet,
MIL_INT64 FirstValue,
MIL_INT64 SecondValue)
Parameters
MarkerId See MarkerId of the main function for a description. CharacteristicToSet See CharacteristicToSet of the main function for a description. FirstValue See FirstValue of the main function for a description. SecondValue See SecondValue of the main function for a description. |
void MmeasSetMarkerDouble
(MIL_ID MarkerId,
MIL_INT64 CharacteristicToSet,
MIL_DOUBLE FirstValue,
MIL_DOUBLE SecondValue)
Parameters
MarkerId See MarkerId of the main function for a description. CharacteristicToSet See CharacteristicToSet of the main function for a description. FirstValue See FirstValue of the main function for a description. SecondValue See SecondValue of the main function for a description. |
Header | Include mil.h. |
Library | Use mil.lib; milmeas.lib. |
DLL | Requires mil.dll; milmeas.dll. |