calculate the centre of mass of the local spectra in hexagonal geometry
Each of the
J x 6 spectral values is assigned a coordinate in 3D space with
j denotes the scale and
d the direction. Then the centre of mass in this space is calculated, the spectral values being the masses at each vertex. The x- and y-cooridnate are then transformed into a radius
rho=sqrt(x^2+y^2) and an angle
rho measures the degree of anisotropy at each pixel,
phi the orientation of edges in the image, and the third coordinate,
z, the central scale. If a
mask is provided, values where
mask==TRUE are set to
nx x ny x 3 array where the third dimension denotes degree of anisotropy, angle and central scale, respectively.
Since the centre of mass is not defined for negative mass, any values below zero are removed at this point.
1 2 3
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.