HsvToRgbOp class
Converts an HSV tensor to RGB color space.
All channels use 0, 1 range: H∈0,1, S∈0,1, V∈0,1.
Supports 3D C, H, W and 4D N, C, H, W tensors with 3 channels (HSV).
Output shape is the same as input.
Example
final toRgb = HsvToRgbOp();
final rgb = toRgb(hsvTensor); // [3, H, W] -> [3, H, W]
References
- TensorFlow:
tf.image.hsv_to_rgb
- Inheritance
-
- Object
- TransformOp
- HsvToRgbOp
- Mixed-in types
Constructors
- HsvToRgbOp()
- Creates an HSV to RGB conversion operation.
Properties
- capabilities → OperationCapabilities
-
The capabilities of this operation.
no setteroverride
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The human-readable name of this operation.
no setteroverride
- requiresContiguous → bool
-
Whether this operation requires contiguous input.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
apply(
TensorBuffer input) → TensorBuffer -
Applies this transform to
inputand returns the result.override -
call(
TensorBuffer input) → TensorBuffer -
Alias for apply.
inherited
-
cloneForModification(
TensorBuffer input) → TensorBuffer -
Creates an output buffer from input, ensuring contiguity with single copy.
inherited
-
computeOutputShape(
List< int> inputShape) → List<int> -
Computes the output shape for a given
inputShape.override -
ensureContiguous(
TensorBuffer input) → TensorBuffer -
Returns a contiguous version of
inputif needed.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited