T - data type for output() output@Operator(group="image") public final class RgbToHsv<T extends java.lang.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 | Description |
|---|---|---|
Output<T> |
asOutput() |
Returns the symbolic handle of a tensor.
|
static <T extends java.lang.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.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitequals, hashCode, toStringpublic static <T extends java.lang.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 java.lang.Number>OperationBuilder.addInput(Output)