Short description
create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flipT_create_dl_transform_flip — Create a flip transform.
Signature
create_dl_transform_flip( string TransformName, real Probability, string Direction, attribute.name GenParamName, attribute.value GenParamValue, out dl_transform Flip )void CreateDlTransformFlip( const HTuple& TransformName, const HTuple& Probability, const HTuple& Direction, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* Flip )static void HOperatorSet.CreateDlTransformFlip( HTuple transformName, HTuple probability, HTuple direction, HTuple genParamName, HTuple genParamValue, out HTuple flip )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
Herror T_create_dl_transform_flip( 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 ) (Windows only)
public HDlTransform( string transformName, double probability, string direction, HTuple genParamName, HTuple genParamValue )
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 ) (Windows only)
void HDlTransform.CreateDlTransformFlip( string transformName, double probability, string direction, HTuple genParamName, HTuple genParamValue )
Description
The operator create_dl_transform_flipCreateDlTransformFlip creates a flip
transform and returns the transform handle in Flipflipflip.
The transform performs a flip of the input image in horizontal or vertical
direction.
The parameter TransformNametransformNametransform_name specifies a unique, non-empty name
for the transform. Note that when creating a transform pipeline using
create_dl_transform_pipelineCreateDlTransformPipeline, each transform within the pipeline
must have a unique name.
The parameter Probabilityprobabilityprobability specifies the probability with which the
transform is executed in the pipeline. The probability must be between
0.00.0 and 1.01.0. A value of 0.00.0 disables execution,
while a value of 1.01.0 guarantees that the operation is executed.
The parameter Directiondirectiondirection defines in which direction the input image
is flipped. The flip direction can be 'horizontal'"horizontal" or
'vertical'"vertical".
No generic parameters GenParamNamegenParamNamegen_param_name and GenParamValuegenParamValuegen_param_value are
supported for this transform. Only the value [][] can be set.
The following parameters are specific to the transforms of type
'flip'"flip". They can respectively be get or set using the
operators get_dl_transform_pipeline_paramGetDlTransformPipelineParam and
set_dl_transform_pipeline_paramSetDlTransformPipelineParam:
| ParamName |
set |
get |
| 'direction'"direction" |
x |
x |
Execution information
-
Multithreading type: reentrant (runs in parallel with non-exclusive operators).
-
Multithreading scope: global (may be called from any thread).
-
Automatically parallelized on internal data level.
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
TransformNametransformNametransform_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
Name of the output transform.
Default: 'flip'"flip"
Probabilityprobabilityprobability (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)
Probability to execute the transform
Default: 1.01.0
Directiondirectiondirection (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
Flip direction.
Default: 'horizontal'"horizontal"
List of values: 'horizontal', 'vertical'"horizontal", "vertical"
GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
Generic input parameter names.
Default: [][]
GenParamValuegenParamValuegen_param_value (input_control) attribute.value-array → (string / real / integer)HTuple (HString / double / Hlong)HTuple (string / double / int / long)Sequence[Union[str, float, int]]Htuple (char* / double / Hlong)
Generic input parameter values.
Default: [][]
Flipflipflip (output_control) dl_transform → (handle)HTuple (HHandle)HDlTransform, HTuple (IntPtr)HHandleHtuple (handle)
Flip transform.
Combinations with other operators
Combinations
Possible successors
create_dl_transform_pipelineCreateDlTransformPipeline
See also
create_dl_transform_random_hsvCreateDlTransformRandomHsv, create_dl_transform_random_cropCreateDlTransformRandomCrop, transform_dl_sample_batchTransformDlSampleBatch
Module
Foundation