Description Usage Arguments Value See Also Examples
The function converts images to polar coordintates. The polar transformation is useful for unwarpping images which have a generally round object. From power specturm for example, one may generate radial integration profile or azimuthal intensity distribution. Default is "bilinear" interpolation.
1 | car2pol(x, method="bilinear")
|
x |
A raster image or a matrix. |
method |
"NN" Nearest neighbour method, "bilinear" Bilinear interpolation. |
A matrix in polar coordinate system of the requested image
pol.img |
Radial distance corresponds to the shorter side of requested image, and polar angle covers 0 to 360 degrees. |
integ.profile
1 2 3 4 5 6 7 | data(camphora)
par(mfrow=c(1,2))
image(rot90c(camphora), col=gray(c(0:255)/255), main="camphora, original",
useRaster=TRUE, asp=1, axes=FALSE)
img <- car2pol(camphora, method="bilinear")
image(rot90c(img), col=gray(c(0:255)/255), main="camphora, polar (bilinear)",
xlab="radial distance(pixel)",ylab="angle(deg)", useRaster=TRUE, asp=1, axes=FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.