T
- data type for output()
output@Operator(group="image") 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 wrapping a new RgbToHsv operation.
|
Output<T> |
output()
`images` converted to HSV.
|
equals, hashCode, op, toString
public static <T extends Number> RgbToHsv<T> create(Scope scope, Operand<T> images)
scope
- current scopeimages
- 1-D or higher rank. RGB data to convert. Last dimension must be size 3.public Output<T> asOutput()
Operand
Inputs 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 © 2022. All rights reserved.