Warning: This project is deprecated. TensorFlow Addons has stopped development, The project will only be providing minimal maintenance releases until May 2024. See the full announcement here or on github.

Module: tfa.image

View source on GitHub

Additional image manipulation ops.

Functions

adjust_hsv_in_yiq(...): Adjust hue, saturation, value of an RGB image in YIQ color space.

angles_to_projective_transforms(...): Returns projective transform(s) for the given angle(s).

blend(...): Blend image1 and image2 using factor.

compose_transforms(...): Composes the transforms tensors.

connected_components(...): Labels the connected components in a batch of images.

cutout(...): Apply cutout to images.

dense_image_warp(...): Image warping using per-pixel flow vectors.

equalize(...): Equalize image(s)

euclidean_dist_transform(...): Applies euclidean distance transform(s) to the image(s).

gaussian_filter2d(...): Perform Gaussian blur on image(s).

interpolate_bilinear(...): Similar to Matlab's interp2 function.

interpolate_spline(...): Interpolate signal using polyharmonic interpolation.

mean_filter2d(...): Perform mean filtering on image(s).

median_filter2d(...): Perform median filtering on image(s).

random_cutout(...): Apply cutout to images with random offset.

random_hsv_in_yiq(...): Adjust hue, saturation, value of an RGB image randomly in YIQ color space.

resampler(...): Resamples input data at user defined coordinates.

rotate(...): Rotate image(s) counterclockwise by the passed angle(s) in radians.

sharpness(...): Change sharpness of image(s).

shear_x(...): Perform shear operation on an image (x-axis).

shear_y(...): Perform shear operation on an image (y-axis).

sparse_image_warp(...): Image warping using correspondences between sparse control points.

transform(...): Applies the given transform(s) to the image(s).

translate(...): Translate image(s) by the passed vectors(s).

translate_xy(...): Translates image in X or Y dimension.

translations_to_projective_transforms(...): Returns projective transform(s) for the given translation(s).

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2023年07月12日 UTC.