create_dl_transform_flipT_create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip (Operator)
Name
create_dl_transform_flipT_create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip — Create a flip transform.
Signature
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)
(
Windows only)
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)
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)
Description
The operator create_dl_transform_flipcreate_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flip creates a flip
transform and returns the transform handle in FlipFlipFlipflipflip.
The transform performs a flip of the input image in horizontal or vertical
direction.
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 DirectionDirectionDirectiondirectiondirection defines in which direction the input image
is flipped. The flip direction can be 'horizontal'"horizontal""horizontal""horizontal""horizontal" or
'vertical'"vertical""vertical""vertical""vertical".
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
'flip'"flip""flip""flip""flip". 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
|
|
'direction'"direction""direction""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
TransformNameTransformNameTransformNametransformNametransform_name (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Name of the output transform.
Default:
'flip'
"flip"
"flip"
"flip"
"flip"
ProbabilityProbabilityProbabilityprobabilityprobability (input_control) real → HTuplefloatHTupleHtuple (real) (double) (double) (double)
Probability to execute the transform
Default:
1.0
DirectionDirectionDirectiondirectiondirection (input_control) string → HTuplestrHTupleHtuple (string) (string) (HString) (char*)
Flip direction.
Default:
'horizontal'
"horizontal"
"horizontal"
"horizontal"
"horizontal"
List of values:
'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*)
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:
[]
FlipFlipFlipflipflip (output_control) dl_transform → HDlTransform, HTupleHHandleHTupleHtuple (handle) (IntPtr) (HHandle) (handle)
Flip transform.
Possible Successors
create_dl_transform_pipelinecreate_dl_transform_pipelineCreateDlTransformPipelineCreateDlTransformPipelinecreate_dl_transform_pipeline
See also
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
Module
Foundation