revPolar: Inverse transform of the 'polarTransform' method

Description Usage Arguments Details Value Author(s) See Also Examples

Description

Performs an inverse polar transform of an image by calculating the Euclidean coordinates of the rearranged pixels in an image transformed by the polarTransform method. See the documentation for polarTransform for details on the calculation of the polar image coordinates.

Usage

1
	revPolar(d,params)

Arguments

d

The dimensions of the original image in Euclidean space.

params

A list containing the resulting transformed image and parameters from the polarTransform method. This list contains the following items: PI: The transformed image returned by the function polarTransform. pAxis: The principal axis used to shift the polar coordinates of the pixels in the transformed image. resolution: An integer which determines the number of angle values between 0 and 2pi which was used to create the transform. center: The x and y coordinates of the centroid used in the transform. scale: The scaling factor used to transform the image.

Details

This function is only for recovering the original image from an image transformed using the polarTransform method. The input arguments to revPolar, PI,pAxis,resolution,center,scale are returned by the polarTransform method in a list. Note that the dimensions of the original image, the first argument d, must also be specified.

Value

IR

The inverse transformed image; an approximation of the original image from the polar transformed image.

Author(s)

Allison Irvine, Tan Dang

See Also

polarTransform, polarXY, calcCentroid

Examples

1
2
3
4
5
6
7
8
9
#perform a polar transform on the original image
data(circles);
I=rowSums(img,dims=2)
R=polarTransform(I, 20, 100);
## Not run: displayImg(R[[1]]);

#now reverse the transform
IR = revPolar(dim(I),R);
## Not run: displayImg(IR);

IM documentation built on May 2, 2019, 8:55 a.m.