Skip to content

create_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_cropT_create_dl_transform_random_crop🔗

説明🔗

create_dl_transform_random_cropCreateDlTransformRandomCropCreateDlTransformRandomCropcreate_dl_transform_random_cropT_create_dl_transform_random_crop — ランダムなクロップ変換を作成する。

書式🔗

create_dl_transform_random_crop( string TransformName, real Probability, integer Width, integer Height, attribute.name GenParamName, attribute.value GenParamValue, out dl_transform RandomCrop )void CreateDlTransformRandomCrop( const HTuple& TransformName, const HTuple& Probability, const HTuple& Width, const HTuple& Height, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* RandomCrop )static void HOperatorSet.CreateDlTransformRandomCrop( HTuple transformName, HTuple probability, HTuple width, HTuple height, HTuple genParamName, HTuple genParamValue, out HTuple randomCrop )def create_dl_transform_random_crop( transform_name: str, probability: float, width: int, height: int, gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]] ) -> HHandle

Herror T_create_dl_transform_random_crop( 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 ) (Windows only)

public HDlTransform( string transformName, double probability, int width, int height, HTuple genParamName, HTuple genParamValue )

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 ) (Windows only)

void HDlTransform.CreateDlTransformRandomCrop( string transformName, double probability, int width, int height, HTuple genParamName, HTuple genParamValue )

説明🔗

オペレーター create_dl_transform_random_cropCreateDlTransformRandomCrop は、 ランダムなクロップ変換を作成し、その変換ハンドルを RandomCroprandomCroprandom_crop に返します。 この変換は、入力画像上のランダムな位置にサイズ Widthwidthwidth x Heightheightheight の クロップを作成します。

パラメーター TransformNametransformNametransform_name は、変換のための一意かつ空ではない名前を指定します。 create_dl_transform_pipelineCreateDlTransformPipeline を使用して変換パイプラインを作成する場合、 パイプライン内の各変換は一意の名前を付ける必要があります。

パラメーター Probabilityprobabilityprobability は、パイプライン内で変換が実行される確率を指定します。 この確率は 0.00.0 から 1.01.0 の間である必要があります。値が 0.00.0 の場合は 実行が無効になり、値が 1.01.0 の場合は、その操作が確実に実行されます。

パラメーター Widthwidthwidth および Heightheightheight は、クロップの寸法を指定します。

この変換では、汎用パラメーター GenParamNamegenParamNamegen_param_name および GenParamValuegenParamValuegen_param_value は サポートされていません。設定できるのは [][] 値のみです。

以下のパラメーターは、変換タイプ 'random_crop'"random_crop" に固有のものです。これらはそれぞれ、 オペレーター get_dl_transform_pipeline_paramGetDlTransformPipelineParam および set_dl_transform_pipeline_paramSetDlTransformPipelineParam を使用して取得または設定できます。

ParamName set get
'width'"width" x x
'height'"height" x x

実行情報🔗

実行情報
  • マルチスレッドタイプ: リエントラント(非排他なオペレーターと並列に動作)

  • マルチスレッドスコープ: グローバル(他のスレッドから呼び出される可能性あり)

  • 内部データレベルで自動的に並列演算処理を実施

このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。

パラメーター🔗

TransformNametransformNametransform_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)

出力変換の名前

初期値: 'random_crop'"random_crop"

Probabilityprobabilityprobability (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)

変換を実行する確率

初期値: 1.01.0

Widthwidthwidth (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

クロップの幅

初期値: 6464

Heightheightheight (input_control) integer → (integer)HTuple (Hlong)HTuple (int / long)intHtuple (Hlong)

クロップの高さ

初期値: 6464

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)

汎用入力パラメーター値

初期値: [][]
推奨値: [][]

RandomCroprandomCroprandom_crop (output_control) dl_transform → (handle)HTuple (HHandle)HDlTransform, HTuple (IntPtr)HHandleHtuple (handle)

ランダムなクロップ変換

他のオペレーターとの組み合わせ🔗

組み合わせ

後処理の候補

create_dl_transform_pipelineCreateDlTransformPipeline

関連項目

create_dl_transform_blurCreateDlTransformBlur, create_dl_transform_normalizeCreateDlTransformNormalize, create_dl_transform_random_hsvCreateDlTransformRandomHsv, create_dl_transform_resizeCreateDlTransformResize

モジュール🔗

Foundation