create_dl_transform_random_cropT_create_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_crop (Operator)
Name
create_dl_transform_random_cropT_create_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_crop — Erzeugt eine Random-Crop-Transform.
Signatur
void CreateDlTransformRandomCrop(const HTuple& TransformName, const HTuple& Probability, const HTuple& Width, const HTuple& Height, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* RandomCrop)
void HDlTransform::HDlTransform(const HString& TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlTransform::HDlTransform(const char* TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlTransform::HDlTransform(const wchar_t* TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
(
Nur Windows)
void HDlTransform::CreateDlTransformRandomCrop(const HString& TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlTransform::CreateDlTransformRandomCrop(const char* TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
void HDlTransform::CreateDlTransformRandomCrop(const wchar_t* TransformName, double Probability, Hlong Width, Hlong Height, const HTuple& GenParamName, const HTuple& GenParamValue)
(
Nur Windows)
static void HOperatorSet.CreateDlTransformRandomCrop(HTuple transformName, HTuple probability, HTuple width, HTuple height, HTuple genParamName, HTuple genParamValue, out HTuple randomCrop)
public HDlTransform(string transformName, double probability, int width, int height, HTuple genParamName, HTuple genParamValue)
void HDlTransform.CreateDlTransformRandomCrop(string transformName, double probability, int width, int height, HTuple genParamName, HTuple genParamValue)
Beschreibung
Der Operator create_dl_transform_random_cropcreate_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_crop erzeugt eine
Random-Crop-Transform und gibt das Transform-Handle in RandomCropRandomCropRandomCroprandomCroprandom_crop
zurück. Die Transform erstellt einen Ausschnitt mit Größe WidthWidthWidthwidthwidth x
HeightHeightHeightheightheight an einer zufälligen Position im Eingabebild.
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.
Die Parameter WidthWidthWidthwidthwidth und HeightHeightHeightheightheight geben die Ausschnittsgröße
an.
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
'random_crop'"random_crop""random_crop""random_crop""random_crop". 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
|
|
'width'"width""width""width""width" |
x |
x
|
|
'height'"height""height""height""height" |
x |
x
|
|
|
Ausführungsinformationen
- Multithreading-Typ: reentrant (läuft parallel zu nicht-exklusiven Operatoren).
- Multithreading-Bereich: global (kann von jedem Thread aufgerufen werden).
- Automatisch parallelisiert auf interner Datenebene.
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:
'random_crop'
"random_crop"
"random_crop"
"random_crop"
"random_crop"
ProbabilityProbabilityProbabilityprobabilityprobability (input_control) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Wahrscheinlichkeit der Transform.
Default:
1.0
WidthWidthWidthwidthwidth (input_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Ausschnittsbreite
Default:
64
HeightHeightHeightheightheight (input_control) integer → HTupleintHTupleHtuple (integer) (int / long) (Hlong) (Hlong)
Ausschnittshöhe
Default:
64
GenParamNameGenParamNameGenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → HTupleSequence[str]HTupleHtuple (string) (string) (HString) (char*)
Namen der generischen Parameter.
Default:
[]
Werteliste:
[]
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:
[]
Wertevorschläge:
[]
RandomCropRandomCropRandomCroprandomCroprandom_crop (output_control) dl_transform → HDlTransform, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Random-Crop-Transform
Nachfolger
create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline
Siehe auch
create_dl_transform_blurcreate_dl_transform_blurCreateDlTransformBlurCreateDlTransformBlurcreate_dl_transform_blur,
create_dl_transform_normalizecreate_dl_transform_normalizeCreateDlTransformNormalizeCreateDlTransformNormalizecreate_dl_transform_normalize,
create_dl_transform_random_hsvcreate_dl_transform_random_hsvCreateDlTransformRandomHsvCreateDlTransformRandomHsvcreate_dl_transform_random_hsv,
create_dl_transform_resizecreate_dl_transform_resizeCreateDlTransformResizeCreateDlTransformResizecreate_dl_transform_resize
Modul
Foundation