checkOrder: Find the maximum order of finite moments

Description Usage Arguments Value Note Author(s) See Also Examples

Description

Function to find the maximum order (and repetition for complex moments) of moments such that all moment values up to that order (in both the x and y directions) are finite and not Nan values. The maximum order will be at most the maximum order represented in the matrix of moment values. This function looks for the largest size rectangular block in the moment matrix such that no values are infinity or NaN.

Usage

1
checkOrder(moments)

Arguments

moments

Matrix containing image moments from order 0 up to some order p in the x-direction and q in the y-direction, or in the case of complex moments, up to order p and repetition q.

Value

orderP

The maximum order along the x-axis of the moments matrix, which is also the maximum number of valid columns minus 1.

orderQ

The maximum order along the y-axis of the moments matrix, which is also the maximum number of valid rows minus 1.

Note

The maximum order of p and q returned will be the same in the current implementation, representing the upper bounds of a square block within the moments matrix.

Author(s)

Allison Irvine

See Also

OrthIm

Examples

1
2
3
4
5
data(lena);

obj= momentObj(img, "cheby", c(300,200));

maxOrder= checkOrder(obj@moments);

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