RGBToHSV


tensorflow C++ API

tensorflow::ops::RGBToHSV

Converts one or more images from RGB to HSV.


Summary

Outputs a tensor of the same shape as theimagestensor, containing the HSV value of the pixels. The output is only well defined if the value inimagesare in[0,1].

output[..., 0]contains hue,output[..., 1]contains saturation, andoutput[..., 2]contains value. All HSV values are in[0,1]. A hue of 0 corresponds to pure red, hue 1/3 is pure green, and 2/3 is pure blue.

Arguments:

  • scope: A Scope object
  • images: 1-D or higher rank. RGB data to convert. Last dimension must be size 3.

Returns:

  • Output: imagesconverted to HSV.

Constructor

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

Public attributes

  • tensorflow::Output output.

RGBToHSV block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_image_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • images : connect Input node.

Return:

  • Output output: Output object of RGBToHSV class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

Input contents datatype of images must be float.

results matching ""

    No results matching ""