polarXY {IM} | R Documentation |
Computes the radius and and angle of each element's location in a matrix with respect to the centroid.
polarXY(I, centroid)
I |
|
centroid |
two numbers, the x coordinate of the centroid and the y coordinate of the centroid.
The function |
"list"
radius |
The radius of the polar coordinates of each element in the input matrix. |
theta |
The angle of the polar coordinates of each element in the input matrix. |
Allison Irvine, Tan Dang
data(lena); I=rowSums(img,dims=2); center= calcCentroid(I); result= polarXY(I, center);