説明
create_dl_transform_flipCreateDlTransformFlipCreateDlTransformFlipcreate_dl_transform_flipT_create_dl_transform_flip — 反転(フリップ)変換を作成する。
書式
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 )
説明
オペレーター create_dl_transform_flipCreateDlTransformFlip は、反転変換を作成し、
ハンドルをFlipflipflip に返します。この変換は、
入力画像を水平方向または垂直方向に反転させます。
パラメーター TransformNametransformNametransform_name は、変換のための一意かつ空ではない名前を指定します。
create_dl_transform_pipelineCreateDlTransformPipeline を使用して変換パイプラインを作成する場合、
パイプライン内の各変換は一意の名前を持つ必要があることに注意してください。
パラメーター Probabilityprobabilityprobability は、パイプライン内で変換が実行される確率を指定します。
確率は 0.00.0 から 1.01.0 の間である必要があります。値が 0.00.0 の場合は
実行が無効になり、値が 1.01.0 の場合は操作の実行が保証されます。
パラメーター Directiondirectiondirection は、入力画像をどの方向に反転させるかを定義します。
反転の方向は 'horizontal'"horizontal" または 'vertical'"vertical" を指定できます。
この変換では、汎用パラメーター GenParamNamegenParamNamegen_param_name および GenParamValuegenParamValuegen_param_value は
サポートされていません。値 [][] のみを設定できます。
以下のパラメーターは、変換タイプ 'flip'"flip" に固有のものです。これらはそれぞれ、
オペレーター get_dl_transform_pipeline_paramGetDlTransformPipelineParam および
set_dl_transform_pipeline_paramSetDlTransformPipelineParam を使用して取得または設定できます。
| ParamName |
set |
get |
| 'direction'"direction" |
x |
x |
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
TransformNametransformNametransform_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
出力変換の名前。
初期値: 'flip'"flip"
Probabilityprobabilityprobability (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)
変換を適用する確率。
初期値: 1.01.0
Directiondirectiondirection (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
反転の方向。
初期値: 'horizontal'"horizontal"
値のリスト: 'horizontal', 'vertical'"horizontal", "vertical"
GenParamNamegenParamNamegen_param_name (input_control) attribute.name-array → (string)HTuple (HString)HTuple (string)Sequence[str]Htuple (char*)
汎用入力パラメーター名。
初期値: [][]
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)
汎用入力パラメーター値。
初期値: [][]
Flipflipflip (output_control) dl_transform → (handle)HTuple (HHandle)HDlTransform, HTuple (IntPtr)HHandleHtuple (handle)
反転変換。
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
create_dl_transform_pipelineCreateDlTransformPipeline
関連項目
create_dl_transform_random_hsvCreateDlTransformRandomHsv, create_dl_transform_random_cropCreateDlTransformRandomCrop, transform_dl_sample_batchTransformDlSampleBatch
モジュール
Foundation