WLJS LogoWLJS Notebook

ImagePerspectiveTransformation

ImagePerspectiveTransformation[image, m] applies a linear fractional transform specified by matrix m to pixel positions.

ImagePerspectiveTransformation[image, tf] uses a TransformationFunction.

Examples

Apply perspective transform:

img = ExampleData[{"TestImage", "Lena"}];
ImagePerspectiveTransformation[img, RotationMatrix[0.2]]

With size specification:

ImagePerspectiveTransformation[img, ScalingMatrix[{1.5, 1}], {400, 400}]

Please visit the official Wolfram Language Reference for more details.

On this page