create_dl_transform_blurT_create_dl_transform_blurCreateDlTransformBlurCreateDlTransformBlurcreate_dl_transform_blur (Operator)

Name

create_dl_transform_blurT_create_dl_transform_blurCreateDlTransformBlurCreateDlTransformBlurcreate_dl_transform_blur — Create a blur transform.

Signature

create_dl_transform_blur( : : TransformName, Probability, Method, RangeStrength, GenParamName, GenParamValue : Blur)

Herror T_create_dl_transform_blur(const Htuple TransformName, const Htuple Probability, const Htuple Method, const Htuple RangeStrength, const Htuple GenParamName, const Htuple GenParamValue, Htuple* Blur)

void CreateDlTransformBlur(const HTuple& TransformName, const HTuple& Probability, const HTuple& Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Blur)

void HDlTransform::HDlTransform(const HString& TransformName, double Probability, const HString& Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)

void HDlTransform::HDlTransform(const char* TransformName, double Probability, const char* Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)

void HDlTransform::HDlTransform(const wchar_t* TransformName, double Probability, const wchar_t* Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)   ( Windows only)

void HDlTransform::CreateDlTransformBlur(const HString& TransformName, double Probability, const HString& Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)

void HDlTransform::CreateDlTransformBlur(const char* TransformName, double Probability, const char* Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)

void HDlTransform::CreateDlTransformBlur(const wchar_t* TransformName, double Probability, const wchar_t* Method, const HTuple& RangeStrength, const HTuple& GenParamName, const HTuple& GenParamValue)   ( Windows only)

static void HOperatorSet.CreateDlTransformBlur(HTuple transformName, HTuple probability, HTuple method, HTuple rangeStrength, HTuple genParamName, HTuple genParamValue, out HTuple blur)

public HDlTransform(string transformName, double probability, string method, HTuple rangeStrength, HTuple genParamName, HTuple genParamValue)

void HDlTransform.CreateDlTransformBlur(string transformName, double probability, string method, HTuple rangeStrength, HTuple genParamName, HTuple genParamValue)

def create_dl_transform_blur(transform_name: str, probability: float, method: str, range_strength: Sequence[float], gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]]) -> HHandle

Description

The operator create_dl_transform_blurcreate_dl_transform_blurCreateDlTransformBlurCreateDlTransformBlurcreate_dl_transform_blur creates a blur transform and returns the transform handle in BlurBlurBlurblurblur.

The parameter TransformNameTransformNameTransformNametransformNametransform_name specifies a unique, non-empty name for the transform. Note that when creating a transform pipeline using create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline, each transform within the pipeline must have a unique name.

The parameter ProbabilityProbabilityProbabilityprobabilityprobability specifies the probability with which the transform is executed in the pipeline. The probability must be between 0.0 and 1.0. A value of 0.0 disables execution, while a value of 1.0 guarantees that the operation is executed.

The parameter MethodMethodMethodmethodmethod defines the method used for the blur effect. Currently, the method 'gaussian'"gaussian""gaussian""gaussian""gaussian" is supported.

The parameter RangeStrengthRangeStrengthRangeStrengthrangeStrengthrange_strength defines the range for the strength of the blur effect. The range is a tuple of the form [range_min, range_max], where 'range_min'"range_min""range_min""range_min""range_min" and 'range_max'"range_max""range_max""range_max""range_max" must be between 0.0 and 10.0.

No generic parameters GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name and GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value are supported for this transform. Only the value [] can be set.

The following parameters are specific to the transforms of type 'blur'"blur""blur""blur""blur". They can respectively be get or set using the operators get_dl_transform_pipeline_paramget_dl_transform_pipeline_paramGetDlTransformPipelineParamGetDlTransformPipelineParamget_dl_transform_pipeline_param and set_dl_transform_pipeline_paramset_dl_transform_pipeline_paramSetDlTransformPipelineParamSetDlTransformPipelineParamset_dl_transform_pipeline_param:

ParamName set get
'method'"method""method""method""method" x x
'range_strength'"range_strength""range_strength""range_strength""range_strength" x x

Execution Information

This operator returns a handle. Note that the state of an instance of this handle type may be changed by specific operators even though the handle is used as an input parameter by those operators.

Parameters

TransformNameTransformNameTransformNametransformNametransform_name (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

Name of the output transform.

Default: 'blur' "blur" "blur" "blur" "blur"

ProbabilityProbabilityProbabilityprobabilityprobability (input_control)  real HTuplefloatHTupleHtuple (real) (double) (double) (double)

Probability to execute the transform

Default: 1.0

MethodMethodMethodmethodmethod (input_control)  string HTuplestrHTupleHtuple (string) (string) (HString) (char*)

The blur method to use

Default: 'gaussian' "gaussian" "gaussian" "gaussian" "gaussian"

RangeStrengthRangeStrengthRangeStrengthrangeStrengthrange_strength (input_control)  real-array HTupleSequence[float]HTupleHtuple (real) (double) (double) (double)

Tuple with range of strength values to draw from

Default: [1.0,5.0]

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

Generic input parameter names.

Default: []

GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value (input_control)  attribute.value-array HTupleSequence[Union[str, float, int]]HTupleHtuple (string / real / integer) (string / double / int / long) (HString / double / Hlong) (char* / double / Hlong)

Generic input parameter values.

Default: []

BlurBlurBlurblurblur (output_control)  dl_transform HDlTransform, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)

Blur transform

Possible Successors

create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline

See also

create_dl_transform_normalizecreate_dl_transform_normalizeCreateDlTransformNormalizeCreateDlTransformNormalizecreate_dl_transform_normalize, create_dl_transform_random_cropcreate_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_crop, create_dl_transform_random_hsvcreate_dl_transform_random_hsvCreateDlTransformRandomHsvCreateDlTransformRandomHsvcreate_dl_transform_random_hsv, create_dl_transform_resizecreate_dl_transform_resizeCreateDlTransformResizeCreateDlTransformResizecreate_dl_transform_resize

Module

Foundation