revPolar {IM} | R Documentation |
polarTransform
method
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.
revPolar(d,params)
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 |
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.
IR |
The inverse transformed image; an approximation of the original image from the polar transformed image. |
Allison Irvine, Tan Dang
polarTransform
, polarXY
, calcCentroid
#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);