set_distance_transform_xld_paramT_set_distance_transform_xld_paramSetDistanceTransformXldParamSetDistanceTransformXldParamset_distance_transform_xld_param (Operator)

Name

set_distance_transform_xld_paramT_set_distance_transform_xld_paramSetDistanceTransformXldParamSetDistanceTransformXldParamset_distance_transform_xld_param — Set new parameters for an XLD distance transform.

Signature

set_distance_transform_xld_param( : : DistanceTransformID, GenParamName, GenParamValue : )

Herror T_set_distance_transform_xld_param(const Htuple DistanceTransformID, const Htuple GenParamName, const Htuple GenParamValue)

void SetDistanceTransformXldParam(const HTuple& DistanceTransformID, const HTuple& GenParamName, const HTuple& GenParamValue)

void HXLDDistTrans::SetDistanceTransformXldParam(const HTuple& GenParamName, const HTuple& GenParamValue) const

void HXLDDistTrans::SetDistanceTransformXldParam(const HString& GenParamName, const HString& GenParamValue) const

void HXLDDistTrans::SetDistanceTransformXldParam(const char* GenParamName, const char* GenParamValue) const

void HXLDDistTrans::SetDistanceTransformXldParam(const wchar_t* GenParamName, const wchar_t* GenParamValue) const   ( Windows only)

static void HOperatorSet.SetDistanceTransformXldParam(HTuple distanceTransformID, HTuple genParamName, HTuple genParamValue)

void HXLDDistTrans.SetDistanceTransformXldParam(HTuple genParamName, HTuple genParamValue)

void HXLDDistTrans.SetDistanceTransformXldParam(string genParamName, string genParamValue)

def set_distance_transform_xld_param(distance_transform_id: HHandle, gen_param_name: MaybeSequence[str], gen_param_value: MaybeSequence[Union[float, str]]) -> None

Description

set_distance_transform_xld_paramset_distance_transform_xld_paramSetDistanceTransformXldParamSetDistanceTransformXldParamSetDistanceTransformXldParamset_distance_transform_xld_param sets new parameters for the XLD distance transform DistanceTransformIDDistanceTransformIDDistanceTransformIDDistanceTransformIDdistanceTransformIDdistance_transform_id. The names and values of the parameters are passed in GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name and GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value, respectively. GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name can contain the names of parameters 'mode'"mode""mode""mode""mode""mode" and 'max_distance'"max_distance""max_distance""max_distance""max_distance""max_distance". The XLD distance transform of the original reference contour is then rebuilt with updated values of parameters.

Execution Information

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

DistanceTransformIDDistanceTransformIDDistanceTransformIDDistanceTransformIDdistanceTransformIDdistance_transform_id (input_control, state is modified)  xld_dist_trans HXLDDistTrans, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Handle of the XLD distance transform.

GenParamNameGenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control)  attribute.name(-array) HTupleMaybeSequence[str]HTupleHtuple (string) (string) (HString) (char*)

Names of the generic parameters.

Default: 'mode' "mode" "mode" "mode" "mode" "mode"

List of values: 'max_distance'"max_distance""max_distance""max_distance""max_distance""max_distance", 'mode'"mode""mode""mode""mode""mode"

GenParamValueGenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (input_control)  attribute.value(-array) HTupleMaybeSequence[Union[float, str]]HTupleHtuple (string / real) (string / double) (HString / double) (char* / double)

Values of the generic parameters.

Default: 'point_to_point' "point_to_point" "point_to_point" "point_to_point" "point_to_point" "point_to_point"

Suggested values: 'point_to_point'"point_to_point""point_to_point""point_to_point""point_to_point""point_to_point", 'point_to_segment'"point_to_segment""point_to_segment""point_to_segment""point_to_segment""point_to_segment", 5.0

Result

If all parameters are correct, the operator returns the value 2 ( H_MSG_TRUE) . Otherwise, an exception is raised.

Possible Predecessors

get_distance_transform_xld_paramget_distance_transform_xld_paramGetDistanceTransformXldParamGetDistanceTransformXldParamGetDistanceTransformXldParamget_distance_transform_xld_param

Possible Successors

apply_distance_transform_xldapply_distance_transform_xldApplyDistanceTransformXldApplyDistanceTransformXldApplyDistanceTransformXldapply_distance_transform_xld

See also

write_distance_transform_xldwrite_distance_transform_xldWriteDistanceTransformXldWriteDistanceTransformXldWriteDistanceTransformXldwrite_distance_transform_xld, serialize_distance_transform_xldserialize_distance_transform_xldSerializeDistanceTransformXldSerializeDistanceTransformXldSerializeDistanceTransformXldserialize_distance_transform_xld, get_distance_transform_xld_contourget_distance_transform_xld_contourGetDistanceTransformXldContourGetDistanceTransformXldContourGetDistanceTransformXldContourget_distance_transform_xld_contour, read_distance_transform_xldread_distance_transform_xldReadDistanceTransformXldReadDistanceTransformXldReadDistanceTransformXldread_distance_transform_xld, deserialize_distance_transform_xlddeserialize_distance_transform_xldDeserializeDistanceTransformXldDeserializeDistanceTransformXldDeserializeDistanceTransformXlddeserialize_distance_transform_xld, clear_distance_transform_xldclear_distance_transform_xldClearDistanceTransformXldClearDistanceTransformXldClearDistanceTransformXldclear_distance_transform_xld

Module

Foundation