img_unwrap: Uwrap

Description Usage Arguments Details Value

View source: R/image_ops_.R

Description

Unwraps an image produced by wrap.

Usage

1

Arguments

image

image

replace

a one or three value 1D tensor to fill empty pixels.

Details

Where there is a 0 in the last channel for every spatial position, the rest of the three channels in that spatial dimension are grayed (set to 128). Operations like translate and shear on a wrapped Tensor will leave 0s in empty locations. Some transformations look at the intensity of values to do preprocessing, and we want these empty pixels to assume the 'average' value, rather than pure black.

Value

a 3D image Tensor with 3 channels.


tfaddons documentation built on July 2, 2020, 2:12 a.m.