Skip to content

get_measure_paramGetMeasureParamGetMeasureParamget_measure_paramT_get_measure_param🔗

Short description🔗

get_measure_paramGetMeasureParamGetMeasureParamget_measure_paramT_get_measure_param — Return the parameters and properties of a measure object.

Signature🔗

get_measure_param( measure MeasureHandle, attribute.name GenParamName, out attribute.value GenParamValue )void GetMeasureParam( const HTuple& MeasureHandle, const HTuple& GenParamName, HTuple* GenParamValue )static void HOperatorSet.GetMeasureParam( HTuple measureHandle, HTuple genParamName, out HTuple genParamValue )def get_measure_param( measure_handle: HHandle, gen_param_name: MaybeSequence[str] ) -> Sequence[Union[str, float, int]]

def get_measure_param_s( measure_handle: HHandle, gen_param_name: MaybeSequence[str] ) -> Union[str, float, int]Herror T_get_measure_param( const Htuple MeasureHandle, const Htuple GenParamName, Htuple* GenParamValue )

HTuple HMeasure::GetMeasureParam( const HTuple& GenParamName ) const

HTuple HMeasure::GetMeasureParam( const HString& GenParamName ) const

HTuple HMeasure::GetMeasureParam( const char* GenParamName ) const

HTuple HMeasure::GetMeasureParam( const wchar_t* GenParamName ) const (Windows only)

static HTuple HImage::GetMeasureParam( const HMeasure& MeasureHandle, const HTuple& GenParamName )

static HTuple HImage::GetMeasureParam( const HMeasure& MeasureHandle, const HString& GenParamName )

static HTuple HImage::GetMeasureParam( const HMeasure& MeasureHandle, const char* GenParamName )

static HTuple HImage::GetMeasureParam( const HMeasure& MeasureHandle, const wchar_t* GenParamName ) (Windows only)

HTuple HMeasure.GetMeasureParam( HTuple genParamName )

HTuple HMeasure.GetMeasureParam( string genParamName )

static HTuple HImage.GetMeasureParam( HMeasure measureHandle, HTuple genParamName )

static HTuple HImage.GetMeasureParam( HMeasure measureHandle, string genParamName )

Description🔗

The operator get_measure_paramGetMeasureParam returns parameters and properties of the measure object MeasureHandlemeasureHandlemeasure_handle. The names of the desired properties are passed in the generic parameter GenParamNamegenParamNamegen_param_name, the corresponding values are returned in GenParamValuegenParamValuegen_param_value.

The properties that can be passed to GenParamNamegenParamNamegen_param_name depend on the kind of measure object as well as its parameters. If a property is not available, get_measure_paramGetMeasureParam returns an error.

  • Properties for all measure objects

    • 'type'"type": Type of the measure object, either 'rectangle2'"rectangle2" if the object was created with gen_measure_rectangle2GenMeasureRectangle2, or 'arc'"arc" if it was created with gen_measure_arcGenMeasureArc.

    • 'image_width'"image_width", 'image_height'"image_height": Image width and height, respectively, for which the measure object was created.

    • 'interpolation'"interpolation": Used interpolation mode: 'nearest_neighbor'"nearest_neighbor", 'bilinear'"bilinear" or 'bicubic'"bicubic".

  • Properties for rectangular measure objects Properties for measure objects that were created with gen_measure_rectangle2GenMeasureRectangle2.

    • 'row'"row", 'column'"column": Row and column, respectively, of the center of the measurement rectangle.

    • 'phi'"phi": Rotation angle of the measurement rectangle.

    • 'length1'"length1", 'length2'"length2": Side lengths of the measurement rectangle.

  • Properties for annular-shaped measure objects Properties for measure objects that were created with gen_measure_arcGenMeasureArc.

    • 'row'"row", 'column'"column": Row and column, respectively, of the center of the annular arc.

    • 'radius'"radius": Radius of the annular arc.

    • 'angle_start'"angle_start", 'angle_extent'"angle_extent": Starting angle and angular extent of annular arc.

    • 'annulus_radius'"annulus_radius": Radius of the angular arc.

  • Properties for measure objects with fuzzy functions Properties for measure objects, for which fuzzy functions have been set with set_fuzzy_measureSetFuzzyMeasure or set_fuzzy_measure_norm_pairSetFuzzyMeasureNormPair.

    • 'fuzzy_contrast'"fuzzy_contrast": Fuzzy function for evaluation of the edge amplitudes.

    • 'fuzzy_position'"fuzzy_position", 'fuzzy_position_center'"fuzzy_position_center", 'fuzzy_position_end'"fuzzy_position_end", 'fuzzy_position_first_edge'"fuzzy_position_first_edge", 'fuzzy_position_last_edge'"fuzzy_position_last_edge": Fuzzy function for evaluation of the distance of edge candidates to the reference point on the measure object.

    • 'fuzzy_position_pair'"fuzzy_position_pair", 'fuzzy_position_pair_center'"fuzzy_position_pair_center", 'fuzzy_position_pair_end'"fuzzy_position_pair_end", 'fuzzy_position_first_pair'"fuzzy_position_first_pair", 'fuzzy_position_last_pair'"fuzzy_position_last_pair": Fuzzy function for evaluation of of the distance of edge pairs to the reference point on the measure object.

    • 'fuzzy_size'"fuzzy_size", 'fuzzy_size_diff'"fuzzy_size_diff", 'fuzzy_size_abs_diff'"fuzzy_size_abs_diff": Fuzzy function for evaluation of the distance between two edges of a pair.

    • 'fuzzy_gray'"fuzzy_gray": Fuzzy function for weighting the mean projected gray value between two edges of a pair.

Execution information🔗

Execution information
  • Multithreading type: reentrant (runs in parallel with non-exclusive operators).

  • Multithreading scope: global (may be called from any thread).

  • Processed without parallelization.

Parameters🔗

MeasureHandlemeasureHandlemeasure_handle (input_control) measure → (handle)HTuple (HHandle)HMeasure, HTuple (IntPtr)HHandleHtuple (handle)

Measure object handle.

GenParamNamegenParamNamegen_param_name (input_control) attribute.name(-array) → (string)HTuple (HString)HTuple (string)MaybeSequence[str]Htuple (char*)

Name of the parameter to be returned.

Default: 'type'"type"
List of values: 'angle_extent', 'angle_start', 'annulus_radius', 'column', 'fuzzy_contrast', 'fuzzy_gray', 'fuzzy_position', 'fuzzy_position_center', 'fuzzy_position_end', 'fuzzy_position_first_edge', 'fuzzy_position_first_pair', 'fuzzy_position_last_edge', 'fuzzy_position_last_pair', 'fuzzy_position_pair', 'fuzzy_position_pair_center', 'fuzzy_position_pair_end', 'fuzzy_size', 'fuzzy_size_abs_diff', 'fuzzy_size_diff', 'image_height', 'image_width', 'interpolation', 'length1', 'length2', 'phi', 'radius', 'row', 'type'"angle_extent", "angle_start", "annulus_radius", "column", "fuzzy_contrast", "fuzzy_gray", "fuzzy_position", "fuzzy_position_center", "fuzzy_position_end", "fuzzy_position_first_edge", "fuzzy_position_first_pair", "fuzzy_position_last_edge", "fuzzy_position_last_pair", "fuzzy_position_pair", "fuzzy_position_pair_center", "fuzzy_position_pair_end", "fuzzy_size", "fuzzy_size_abs_diff", "fuzzy_size_diff", "image_height", "image_width", "interpolation", "length1", "length2", "phi", "radius", "row", "type"

GenParamValuegenParamValuegen_param_value (output_control) attribute.value(-array) → (real / string / integer)HTuple (double / HString / Hlong)HTuple (double / string / int / long)Sequence[Union[str, float, int]]Htuple (double / char* / Hlong)

Value of the parameter.

Result🔗

If the parameter values are correct the operator get_measure_paramGetMeasureParam returns the value 2 (H_MSG_TRUE). Otherwise an exception is raised.

Combinations with other operators🔗

Combinations

Possible predecessors

gen_measure_rectangle2GenMeasureRectangle2, gen_measure_arcGenMeasureArc

See also

gen_measure_rectangle2GenMeasureRectangle2, gen_measure_arcGenMeasureArc, translate_measureTranslateMeasure

Module🔗

1D Metrology