create_dl_transform_flipT_create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip (Operator)

Name

create_dl_transform_flipT_create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip — Erzeugt eine Flip-Transform.

Signatur

create_dl_transform_flip( : : TransformName, Probability, Direction, GenParamName, GenParamValue : Flip)

Herror T_create_dl_transform_flip(const Htuple TransformName, const Htuple Probability, const Htuple Direction, const Htuple GenParamName, const Htuple GenParamValue, Htuple* Flip)

void CreateDlTransformFlip(const HTuple& TransformName, const HTuple& Probability, const HTuple& Direction, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Flip)

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

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

void HDlTransform::HDlTransform(const wchar_t* TransformName, double Probability, const wchar_t* Direction, const HTuple& GenParamName, const HTuple& GenParamValue)   ( Nur Windows)

void HDlTransform::CreateDlTransformFlip(const HString& TransformName, double Probability, const HString& Direction, const HTuple& GenParamName, const HTuple& GenParamValue)

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

void HDlTransform::CreateDlTransformFlip(const wchar_t* TransformName, double Probability, const wchar_t* Direction, const HTuple& GenParamName, const HTuple& GenParamValue)   ( Nur Windows)

static void HOperatorSet.CreateDlTransformFlip(HTuple transformName, HTuple probability, HTuple direction, HTuple genParamName, HTuple genParamValue, out HTuple flip)

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

void HDlTransform.CreateDlTransformFlip(string transformName, double probability, string direction, HTuple genParamName, HTuple genParamValue)

def create_dl_transform_flip(transform_name: str, probability: float, direction: str, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]]) -> HHandle

Beschreibung

Der Operator create_dl_transform_flipcreate_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip erzeugt eine Flip-Transform und gibt das Transform-Handle in FlipFlipFlipflipflip zurück. Die Transform spiegelt das Eingabebild in horizontaler oder vertikaler Richtung.

Der Parameter TransformNameTransformNameTransformNametransformNametransform_name legt einen individuellen Namen für die Transform fest, der nicht leer ''"""""""" sein darf. Es ist zu beachten, dass beim Erstellen einer Transform-Pipeline mit create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline jede Transform der Pipeline einen eindeutigen Namen haben muss.

Der Parameter ProbabilityProbabilityProbabilityprobabilityprobability definiert die Wahrscheinlichkeit, mit der die Transform in der Transform-Pipeline ausgeführt wird. Die Wahrscheinlichkeit muss zwischen 0.0 und 1.0 liegen. Ein Wert von 0.0 deaktiviert die Ausführung, während ein Wert von 1.0 sicherstellt, dass die Transform ausgeführt wird.

Der Parameter DirectionDirectionDirectiondirectiondirection definiert in welche Richtung das Eingabebild gespiegelt wird. Die Richtung kann 'horizontal'"horizontal""horizontal""horizontal""horizontal" oder 'vertical'"vertical""vertical""vertical""vertical" sein.

Für diese Transform werden die generischen Parameter GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name und GenParamValueGenParamValueGenParamValuegenParamValuegen_param_value nicht unterstützt. Es kann nur der Wert [] eingestellt werden.

Die folgenden Parameter sind spezifisch für die Transforms vom Typ 'flip'"flip""flip""flip""flip". Sie können jeweils mit den Operatoren get_dl_transform_pipeline_paramget_dl_transform_pipeline_paramGetDlTransformPipelineParamGetDlTransformPipelineParamget_dl_transform_pipeline_param und set_dl_transform_pipeline_paramset_dl_transform_pipeline_paramSetDlTransformPipelineParamSetDlTransformPipelineParamset_dl_transform_pipeline_param gelesen oder gesetzt werden:

ParamName set get
'direction'"direction""direction""direction""direction" x x

Ausführungsinformationen

Dieser Operator liefert ein Handle zurück. Es ist zu beachten, dass der Zustand einer Instanz dieses Handletyps durch bestimmte Operatoren geändert werden kann, obwohl das Handle als Eingabeparameter in diesen Operatoren verwendet wird.

Parameter

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

Name der Ausgabe-Transform.

Default: 'flip' "flip" "flip" "flip" "flip"

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

Wahrscheinlichkeit der Ausführung der Transform

Default: 1.0

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

Richtung der Spiegelung.

Default: 'horizontal' "horizontal" "horizontal" "horizontal" "horizontal"

Werteliste: 'horizontal'"horizontal""horizontal""horizontal""horizontal", 'vertical'"vertical""vertical""vertical""vertical"

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

Namen der generischen Parameter.

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)

Werte der generischen Parameter.

Default: []

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

Flip-Transform.

Nachfolger

create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline

Siehe auch

create_dl_transform_random_hsvcreate_dl_transform_random_hsvCreateDlTransformRandomHsvCreateDlTransformRandomHsvcreate_dl_transform_random_hsv, create_dl_transform_random_cropcreate_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_crop, transform_dl_sample_batchtransform_dl_sample_batchTransformDlSampleBatchTransformDlSampleBatchtransform_dl_sample_batch

Modul

Foundation