@Namespace(value="tensorflow::ops") @NoOffset @Properties(inherit=tensorflow.class) public class AdjustContrast extends Pointer
Adjust the contrast of one or more images.
images
is a tensor of at least 3 dimensions. The last 3 dimensions are
interpreted as [height, width, channels]
. The other dimensions only
represent a collection of images, such as [batch, height, width, channels].
Contrast is adjusted independently for each channel of each image.
For each channel, the Op first computes the mean of the image pixels in the
channel and then adjusts each component of each pixel to
(x - mean) * contrast_factor + mean
.
Arguments:
* scope: A Scope object
* images: Images to adjust. At least 3-D.
* contrast_factor: A float multiplier for adjusting contrast.
Returns:
* Output
: The contrast-adjusted image or images.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
AdjustContrast(Pointer p)
Pointer cast constructor.
|
AdjustContrast(Scope scope,
Input images,
Input contrast_factor) |
Modifier and Type | Method and Description |
---|---|
Input |
asInput() |
Output |
asOutput() |
Node |
node() |
Operation |
operation() |
AdjustContrast |
operation(Operation setter) |
Output |
output() |
AdjustContrast |
output(Output setter) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public AdjustContrast(Pointer p)
Pointer(Pointer)
.public Node node()
public AdjustContrast operation(Operation setter)
public AdjustContrast output(Output setter)
Copyright © 2022. All rights reserved.