polarXY: Calculate polar coordinates of elements in a matrix

Description Usage Arguments Value Author(s) See Also Examples

Description

Computes the radius and and angle of each element's location in a matrix with respect to the centroid.

Usage

1
polarXY(I, centroid)

Arguments

I

"Matrix" representation of an image, or any matrix.

centroid

two numbers, the x coordinate of the centroid and the y coordinate of the centroid. The function calcCentroid may be used to estimate the image centroid.

Value

"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.

Author(s)

Allison Irvine, Tan Dang

See Also

polarTransform, calcCentroid

Examples

1
2
3
4
data(lena);
I=rowSums(img,dims=2);
center= calcCentroid(I);
result= polarXY(I, center);

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