tensorflow :: ops :: RGBToHSV
#include <image_ops.h>
Mengonversi satu atau lebih gambar dari RGB ke HSV.
Ringkasan
Menghasilkan tensor dengan bentuk yang sama seperti tensor images
, yang berisi nilai piksel HSV. Output hanya ditentukan dengan baik jika nilai dalam images
adalah [0,1]
.
output[..., 0]
berisi hue, output[..., 1]
berisi saturasi, dan output[..., 2]
berisi nilai. Semua nilai HSV berada di [0,1]
. Rona 0 berarti merah murni, rona 1/3 adalah hijau murni, dan 2/3 adalah biru murni.
Contoh Penggunaan:
blue_image = tf.stack ([... tf.zeros ([5,5]), ... tf.zeros ([5,5]), ... tf.ones ([5,5])], ... axis = -1) blue_hsv_image = tf.image.rgb_to_hsv (blue_image) blue_hsv_image [0,0] .numpy () array ([0.6666667, 1., 1.], dtype = float32)
Argumen:
- scope: Objek Scope
- gambar: peringkat 1-D atau lebih tinggi. Data RGB untuk diubah. Dimensi terakhir harus berukuran 3.
Pengembalian:
-
Output
:images
dikonversi ke HSV.
Pembuat dan Penghancur | |
---|---|
RGBToHSV (const :: tensorflow::Scope & scope, :: tensorflow::Input images) |
Atribut publik | |
---|---|
operation | |
output |
Fungsi publik | |
---|---|
node () const | ::tensorflow::Node * |
operator::tensorflow::Input () const | |
operator::tensorflow::Output () const |
Atribut publik
operasi
Operation operation
keluaran
::tensorflow::Output output
Fungsi publik
RGBToHSV
RGBToHSV( const ::tensorflow::Scope & scope, ::tensorflow::Input images )
simpul
::tensorflow::Node * node() const
operator :: tensorflow :: Input
operator::tensorflow::Input() const
operator :: tensorflow :: Keluaran
operator::tensorflow::Output() const