ResizeArea


tensorflow C++ API

tensorflow::ops::ResizeArea

Resizeimagestosizeusing area interpolation.


Summary

Input images can be of different types but output images are always float.

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 (seeAttrs):

  • align_corners: If true, rescale input by (new_height - 1) / (height - 1), which exactly aligns the 4 corners of images and resized images. If false, rescale by new_height / height. Treat similarly the width dimension.

Returns:

  • Outputresized_images: 4-D with shape[batch, new_height, new_width, channels].

Constructor

  • ResizeArea(const ::tensorflow::Scope& scope, ::tensorflow::Input images, ::tensorflow::Input size, const ResizeArea::Attrs& attrs).

Public attributes

  • tensorflow::Output resized_images.

ResizeArea block

Source link : https://github.com/EXPNUNI/enuSpaceTensorflow/blob/master/enuSpaceTensorflow/tf_image_ops.cpp

Argument:

  • Scope scope : A Scope object (A scope is generated automatically each page. A scope is not connected.)
  • images : connect Input node.
  • size: connect Input node or input int32 value.
  • ResizeArea ::Attrs attrs : input attrs. ex) align_corners_ = false;

Return:

  • Output resized_images: Output object of ResizeArea class object.

Result:

  • std::vector(Tensor) product_result : Returned object of executed result by calling session.

Using Method

results matching ""

    No results matching ""