apply_distance_transform_xldT_apply_distance_transform_xldApplyDistanceTransformXldApplyDistanceTransformXldapply_distance_transform_xld (Operator)

Name

apply_distance_transform_xldT_apply_distance_transform_xldApplyDistanceTransformXldApplyDistanceTransformXldapply_distance_transform_xld — Determine the pointwise distance of two contours using an XLD distance transform.

Signature

apply_distance_transform_xld(Contour : ContourOut : DistanceTransformID : )

Herror T_apply_distance_transform_xld(const Hobject Contour, Hobject* ContourOut, const Htuple DistanceTransformID)

void ApplyDistanceTransformXld(const HObject& Contour, HObject* ContourOut, const HTuple& DistanceTransformID)

HXLDCont HXLDDistTrans::ApplyDistanceTransformXld(const HXLDCont& Contour) const

static void HOperatorSet.ApplyDistanceTransformXld(HObject contour, out HObject contourOut, HTuple distanceTransformID)

HXLDCont HXLDDistTrans.ApplyDistanceTransformXld(HXLDCont contour)

def apply_distance_transform_xld(contour: HObject, distance_transform_id: HHandle) -> HObject

Description

The operator apply_distance_transform_xldapply_distance_transform_xldApplyDistanceTransformXldApplyDistanceTransformXldApplyDistanceTransformXldapply_distance_transform_xld determines for each point in ContourContourContourContourcontourcontour the minimal distance to the reference contour using its XLD distance transform DistanceTransformIDDistanceTransformIDDistanceTransformIDDistanceTransformIDdistanceTransformIDdistance_transform_id. The returned contour ContourOutContourOutContourOutContourOutcontourOutcontour_out consists of ContourContourContourContourcontourcontour with the attribute 'distance'"distance""distance""distance""distance""distance" containing the calculated distances. They can be accessed by querying the attribute 'distance'"distance""distance""distance""distance""distance" with get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld. See the operator reference of get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld for further information about contour attributes.

Note that the distances depend on the parameters of create_distance_transform_xldcreate_distance_transform_xldCreateDistanceTransformXldCreateDistanceTransformXldCreateDistanceTransformXldcreate_distance_transform_xld: The distances are clipped to the maximum distance specified by the parameter MaxDistance. The parameter Mode determines whether the distances are calculated 'point_to_point'"point_to_point""point_to_point""point_to_point""point_to_point""point_to_point" or 'point_to_segment'"point_to_segment""point_to_segment""point_to_segment""point_to_segment""point_to_segment". For further details please refer to the documentation of create_distance_transform_xldcreate_distance_transform_xldCreateDistanceTransformXldCreateDistanceTransformXldCreateDistanceTransformXldcreate_distance_transform_xld.

Execution Information

Parameters

ContourContourContourContourcontourcontour (input_object)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject

Contour(s) for whose points the distances are calculated.

ContourOutContourOutContourOutContourOutcontourOutcontour_out (output_object)  xld_cont(-array) objectHXLDContHObjectHXLDContHobject *

Copy of ContourContourContourContourcontourcontour containing the distances as an attribute.

DistanceTransformIDDistanceTransformIDDistanceTransformIDDistanceTransformIDdistanceTransformIDdistance_transform_id (input_control)  xld_dist_trans HXLDDistTrans, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the XLD distance transform of the reference contour.

Result

If all parameters are correct, the operator returns the value TRUE. Otherwise, an exception is raised.

Possible Predecessors

create_distance_transform_xldcreate_distance_transform_xldCreateDistanceTransformXldCreateDistanceTransformXldCreateDistanceTransformXldcreate_distance_transform_xld, read_distance_transform_xldread_distance_transform_xldReadDistanceTransformXldReadDistanceTransformXldReadDistanceTransformXldread_distance_transform_xld, deserialize_distance_transform_xlddeserialize_distance_transform_xldDeserializeDistanceTransformXldDeserializeDistanceTransformXldDeserializeDistanceTransformXlddeserialize_distance_transform_xld, set_distance_transform_xld_paramset_distance_transform_xld_paramSetDistanceTransformXldParamSetDistanceTransformXldParamSetDistanceTransformXldParamset_distance_transform_xld_param

Possible Successors

get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld, segment_contour_attrib_xldsegment_contour_attrib_xldSegmentContourAttribXldSegmentContourAttribXldSegmentContourAttribXldsegment_contour_attrib_xld

Alternatives

distance_contours_xlddistance_contours_xldDistanceContoursXldDistanceContoursXldDistanceContoursXlddistance_contours_xld

See also

get_contour_attrib_xldget_contour_attrib_xldGetContourAttribXldGetContourAttribXldGetContourAttribXldget_contour_attrib_xld, set_distance_transform_xld_paramset_distance_transform_xld_paramSetDistanceTransformXldParamSetDistanceTransformXldParamSetDistanceTransformXldParamset_distance_transform_xld_param, write_distance_transform_xldwrite_distance_transform_xldWriteDistanceTransformXldWriteDistanceTransformXldWriteDistanceTransformXldwrite_distance_transform_xld, serialize_distance_transform_xldserialize_distance_transform_xldSerializeDistanceTransformXldSerializeDistanceTransformXldSerializeDistanceTransformXldserialize_distance_transform_xld, clear_distance_transform_xldclear_distance_transform_xldClearDistanceTransformXldClearDistanceTransformXldClearDistanceTransformXldclear_distance_transform_xld

Module

Foundation