テンソルフロー::作戦:: RGBからHSVへ

#include <image_ops.h>

1 つ以上の画像を RGB から HSV に変換します。

まとめ

ピクセルの HSV 値を含む、 imagesテンソルと同じ形状のテンソルを出力します。出力は、 imagesの値が[0,1]にある場合にのみ明確に定義されます。

output[..., 0]は色相が含まれ、 output[..., 1]は彩度が含まれ、 output[..., 2]は値が含まれます。すべてのHSV 値は[0,1]にあります。色相 0 は純粋な赤、色相 1/3 は純粋な緑、2/3 は純粋な青に対応します。

引数:

  • スコープ:スコープオブジェクト
  • 画像:1-Dランク以上。変換するRGBデータ。最後の寸法はサイズ 3 である必要があります。

戻り値:

  • Output : HSV に変換されたimages

コンストラクターとデストラクター

RGBToHSV (const :: tensorflow::Scope & scope, :: tensorflow::Input images)

パブリック属性

operation
output

公共機能

node () const
::tensorflow::Node *
operator::tensorflow::Input () const
operator::tensorflow::Output () const

パブリック属性

手術

Operation operation

出力

::tensorflow::Output output

公共機能

RGBからHSVへ

 RGBToHSV(
  const ::tensorflow::Scope & scope,
  ::tensorflow::Input images
)

ノード

::tensorflow::Node * node() const 

演算子::tensorflow::入力

 operator::tensorflow::Input() const 

演算子::tensorflow::出力

 operator::tensorflow::Output() const