T - data type for output() output@Operator public final class RGBToHSV<T extends Number> extends PrimitiveOp implements Operand<T>
Outputs a tensor of the same shape as the `images` tensor, containing the HSV value of the pixels. The output is only well defined if the value in `images` are in `[0,1]`.
`output[..., 0]` contains hue, `output[..., 1]` contains saturation, and `output[..., 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.
operation| Modifier and Type | Method and Description |
|---|---|
Output<T> |
asOutput()
Returns the symbolic handle of a tensor.
|
static <T extends Number> |
create(Scope scope,
Operand<T> images)
Factory method to create a class to wrap a new RGBToHSV operation to the graph.
|
Output<T> |
output()
`images` converted to HSV.
|
equals, hashCode, toStringpublic static <T extends Number> RGBToHSV<T> create(Scope scope, Operand<T> images)
scope - current graph scopeimages - 1-D or higher rank. RGB data to convert. Last dimension must be size 3.public Output<T> asOutput()
OperandInputs to TensorFlow operations are outputs of another TensorFlow operation. This method is used to obtain a symbolic handle that represents the computation of the input.
asOutput in interface Operand<T extends Number>OperationBuilder.addInput(Output)Copyright © 2015–2019. All rights reserved.