説明
create_dl_transform_random_hsvCreateDlTransformRandomHsvCreateDlTransformRandomHsvcreate_dl_transform_random_hsvT_create_dl_transform_random_hsv — ランダムなHSV変換を作成する。
書式
create_dl_transform_random_hsv( string TransformName, real Probability, real RangeH, real RangeS, real RangeV, attribute.name GenParamName, attribute.value GenParamValue, out dl_transform RandomHSV )void CreateDlTransformRandomHsv( const HTuple& TransformName, const HTuple& Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue, HTuple* RandomHSV )static void HOperatorSet.CreateDlTransformRandomHsv( HTuple transformName, HTuple probability, HTuple rangeH, HTuple rangeS, HTuple rangeV, HTuple genParamName, HTuple genParamValue, out HTuple randomHSV )def create_dl_transform_random_hsv( transform_name: str, probability: float, range_h: Sequence[float], range_s: Sequence[float], range_v: Sequence[float], gen_param_name: Sequence[str], gen_param_value: Sequence[Union[str, float, int]] ) -> HHandle
Herror T_create_dl_transform_random_hsv( const Htuple TransformName, const Htuple Probability, const Htuple RangeH, const Htuple RangeS, const Htuple RangeV, const Htuple GenParamName, const Htuple GenParamValue, Htuple* RandomHSV )
void HDlTransform::HDlTransform( const HString& TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlTransform::HDlTransform( const char* TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlTransform::HDlTransform( const wchar_t* TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue ) (Windows only)
public HDlTransform( string transformName, double probability, HTuple rangeH, HTuple rangeS, HTuple rangeV, HTuple genParamName, HTuple genParamValue )
void HDlTransform::CreateDlTransformRandomHsv( const HString& TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlTransform::CreateDlTransformRandomHsv( const char* TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue )
void HDlTransform::CreateDlTransformRandomHsv( const wchar_t* TransformName, double Probability, const HTuple& RangeH, const HTuple& RangeS, const HTuple& RangeV, const HTuple& GenParamName, const HTuple& GenParamValue ) (Windows only)
void HDlTransform.CreateDlTransformRandomHsv( string transformName, double probability, HTuple rangeH, HTuple rangeS, HTuple rangeV, HTuple genParamName, HTuple genParamValue )
説明
オペレーター create_dl_transform_random_hsvCreateDlTransformRandomHsv は、ランダムなHSV変換を作成し、
その変換ハンドルを RandomHSVrandomHSVrandom_hsv に返します。
この変換は、入力画像の色相(hue)、彩度(saturation)、および明度(value)の
各チャンネルに対してランダムなシフトを行います。
パラメーター TransformNametransformNametransform_name は、変換に割り当てる一意かつ空ではない名前を指定します。
create_dl_transform_pipelineCreateDlTransformPipeline を使用して変換パイプラインを作成する場合、
パイプライン内の各変換は一意の名前を付ける必要があります。
パラメーター Probabilityprobabilityprobability は、パイプライン内で変換が実行される確率を指定します。
この確率は 0.00.0 から 1.01.0 の間である必要があります。値が 0.00.0 の場合は
実行が無効になり、値が 1.01.0 の場合は操作の実行が保証されます。
パラメーター RangeHrangeHrange_h、RangeSrangeSrange_s、および RangeVrangeVrange_v は、入力画像の
色相、彩度、明度チャンネルに対するランダムなシフトの範囲を定義します。これらの範囲は
[range_min, range_max][range_min, range_max] の形式の配列であり、'range_min'"range_min" と
'range_max'"range_max" は -1.0-1.0 から 1.01.0 範囲でなければなりません。
この変換では、汎用パラメーター GenParamNamegenParamNamegen_param_name および GenParamValuegenParamValuegen_param_value はサポートされていません。
設定できるのは [][] の値のみです。
以下のパラメーターは、変換タイプ 'random_hsv'"random_hsv" に固有のものです。これらはそれぞれ、
オペレーター get_dl_transform_pipeline_paramGetDlTransformPipelineParam および set_dl_transform_pipeline_paramSetDlTransformPipelineParam を使用して取得または設定できます。
| ParamName |
set |
get |
| 'range_h'"range_h" |
x |
x |
| 'range_s'"range_s" |
x |
x |
| 'range_v'"range_v" |
x |
x |
実行情報
実行情報
このオペレータはハンドルを返します。このハンドルタイプのインスタンスの状態は、特定のオペレータにおいては、入力パラメータとして使われている場合であっても変更されることがあります。
パラメーター
TransformNametransformNametransform_name (input_control) string → (string)HTuple (HString)HTuple (string)strHtuple (char*)
出力変換の名前
初期値: 'random_hsv'"random_hsv"
Probabilityprobabilityprobability (input_control) real → (real)HTuple (double)HTuple (double)floatHtuple (double)
変換を実行する確率
初期値: 1.01.0
RangeHrangeHrange_h (input_control) real-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
色相チャンネルのランダムシフト範囲を持つタプル
初期値: [-0.5, 0.5][-0.5, 0.5]
RangeSrangeSrange_s (input_control) real-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
彩度チャンネルのランダムシフト範囲を持つタプル
初期値: [-0.5, 0.5][-0.5, 0.5]
RangeVrangeVrange_v (input_control) real-array → (real)HTuple (double)HTuple (double)Sequence[float]Htuple (double)
明度チャンネルのランダムシフト範囲を持つタプル
初期値: [-0.5, 0.5][-0.5, 0.5]
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)
汎用入力パラメーター値
初期値: [][]
推奨値: [][]
RandomHSVrandomHSVrandom_hsv (output_control) dl_transform → (handle)HTuple (HHandle)HDlTransform, HTuple (IntPtr)HHandleHtuple (handle)
ランダムなHSV変換
他のオペレーターとの組み合わせ
組み合わせ
後処理の候補
create_dl_transform_pipelineCreateDlTransformPipeline
関連項目
create_dl_transform_blurCreateDlTransformBlur, create_dl_transform_normalizeCreateDlTransformNormalize, create_dl_transform_random_cropCreateDlTransformRandomCrop, create_dl_transform_resizeCreateDlTransformResize
モジュール
Foundation