transform_metrology_object🔗
Short description🔗
transform_metrology_object — Transform metrology objects of a metrology model, e.g., for alignment.
Warning🔗
transform_metrology_object is obsolete and is only provided for
reasons of backward compatibility. New applications should use the
operator align_metrology_model instead.
Signature🔗
transform_metrology_object( metrology_model MetrologyHandle, integer Index, real Row, real Column, real Phi, string Mode )
Description🔗
transform_metrology_object translates and rotates the
metrology objects contained in MetrologyHandle specified
by the index Index according to the parameters
Row, Column, and Phi.
For an explanation of the concept of 2D metrology see the introduction of chapter 2D Metrology.
The index Index refer to the index returned by the
operators add_metrology_object_circle_measure,
add_metrology_object_ellipse_measure,
add_metrology_object_line_measure, or
add_metrology_object_rectangle2_measure.
Index may contain a single value or a tuple of values.
If all metrology objects shall be transformed,
Index can be set to 'all'.
The parameter Mode can be set to 'absolute'
or 'relative' and specifies the effect of the
transformation:
-
Mode= 'absolute':The metrology objects are translated to the image coordinates
RowandColumnand rotated byPhiwith respect to the image coordinate system.For metrology objects of the type ellipse, or rectangle, the origin of the rotation is defined in the center of the metrology object as specified in the operators
add_metrology_object_ellipse_measureoradd_metrology_object_rectangle2_measure. For lines and circles,Phiis ignored. -
Mode= 'relative':The values of the transformation are considered as relative values, i.e., they are specified relative to the previous position and rotation of the metrology object.
For metrology objects of the type ellipse, or rectangle, the origin of the rotation is defined in the center of the metrology object as specified in the operators
add_metrology_object_ellipse_measure, oradd_metrology_object_rectangle2_measure. For lines, the starting point of the line is used as origin of the rotation. For circles,Phiis ignored.
transform_metrology_object is fastest if no rotation is
defined, the original and translated measure regions both lie
completely within the image. In all other
cases, the measure regions have to be newly generated,
which is slower.
Attention🔗
Note that any results (fitted geometric shapes) that have been
generated by the operator apply_metrology_model before calling
transform_metrology_object are discarded during the
transformation.
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.
This operator modifies the state of the following input parameter:
During execution of this operator, access to the value of this parameter must be synchronized if it is used across multiple threads.
Parameters🔗
MetrologyHandle (input_control, state is modified) metrology_model → (handle)
Handle of the metrology model.
Index (input_control) integer(-array) → (string / integer)
Index of the metrology objects.
Default: 'all'
Suggested values: 'all', 0, 1, 2
Row (input_control) real(-array) → (real / integer)
Translation in row direction.
Column (input_control) real(-array) → (real / integer)
Translation in column direction.
Phi (input_control) real(-array) → (real / integer)
Rotation angle.
Mode (input_control) string(-array) → (string)
Mode of the transformation.
Default: 'absolute'
Suggested values: 'absolute', 'relative'
Result🔗
If the parameters are valid, the operator
transform_metrology_object returns the value 2 (H_MSG_TRUE). If
necessary, an exception is raised.
Module🔗
2D Metrology