@Namespace(value="tensorflow::ops") @NoOffset public static class tensorflow.ResizeArea extends Pointer
images to size using area interpolation.
Input images can be of different types but output images are always float.
The range of pixel values for the output image might be slightly different
from the range for the input image because of limited numerical precision.
To guarantee an output range, for example [0.0, 1.0], apply
tf.clip_by_value to the output.
Each output pixel is computed by first transforming the pixel's footprint into
the input tensor and then averaging the pixels that intersect the footprint. An
input pixel's contribution to the average is weighted by the fraction of its
area that intersects the footprint. This is the same as OpenCV's INTER_AREA.
Arguments:
* scope: A Scope object
* images: 4-D with shape [batch, height, width, channels].
* size: = A 1-D int32 Tensor of 2 elements: new_height, new_width. The
new size for the images.
Optional attributes (see Attrs):
* align_corners: If true, the centers of the 4 corner pixels of the input and output tensors are
aligned, preserving the values at the corner pixels. Defaults to false.
Returns:
* Output: 4-D with shape
[batch, new_height, new_width, channels].| Modifier and Type | Class and Description |
|---|---|
static class |
tensorflow.ResizeArea.Attrs
Optional attribute setters for ResizeArea
|
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator| Constructor and Description |
|---|
ResizeArea(Pointer p)
Pointer cast constructor.
|
ResizeArea(tensorflow.Scope scope,
tensorflow.Input images,
tensorflow.Input size) |
ResizeArea(tensorflow.Scope scope,
tensorflow.Input images,
tensorflow.Input size,
tensorflow.ResizeArea.Attrs attrs) |
| Modifier and Type | Method and Description |
|---|---|
static tensorflow.ResizeArea.Attrs |
AlignCorners(boolean x) |
tensorflow.Input |
asInput() |
tensorflow.Output |
asOutput() |
tensorflow.Node |
node() |
tensorflow.Operation |
operation() |
tensorflow.ResizeArea |
operation(tensorflow.Operation operation) |
tensorflow.Output |
resized_images() |
tensorflow.ResizeArea |
resized_images(tensorflow.Output resized_images) |
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, hashCode, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetof, parseBytes, physicalBytes, position, position, put, realloc, setNull, sizeof, toString, totalBytes, totalPhysicalBytes, withDeallocator, zeropublic ResizeArea(Pointer p)
Pointer.Pointer(Pointer).public ResizeArea(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input images, @ByVal tensorflow.Input size)
public ResizeArea(@Const @ByRef tensorflow.Scope scope, @ByVal tensorflow.Input images, @ByVal tensorflow.Input size, @Const @ByRef tensorflow.ResizeArea.Attrs attrs)
@ByVal @Name(value="operator tensorflow::Output") public tensorflow.Output asOutput()
@ByVal @Name(value="operator tensorflow::Input") public tensorflow.Input asInput()
public tensorflow.Node node()
@ByVal public static tensorflow.ResizeArea.Attrs AlignCorners(@Cast(value="bool") boolean x)
@ByRef public tensorflow.Operation operation()
public tensorflow.ResizeArea operation(tensorflow.Operation operation)
@ByRef public tensorflow.Output resized_images()
public tensorflow.ResizeArea resized_images(tensorflow.Output resized_images)
Copyright © 2019. All rights reserved.