Module org.scijava.ops.image
Class ZernikeComputer<T extends RealType<T>>
- java.lang.Object
-
- org.scijava.ops.image.features.zernike.ZernikeComputer<T>
-
- All Implemented Interfaces:
Functions.Arity3<IterableInterval<T>,Integer,Integer,ZernikeMoment>
public class ZernikeComputer<T extends RealType<T>> extends Object implements Functions.Arity3<IterableInterval<T>,Integer,Integer,ZernikeMoment>
Computes a specific zernike moment- Author:
- Andreas Graumann (University of Konstanz)
- Implementation Note:
- op names='features.zernike.computer'
-
-
Constructor Summary
Constructors Constructor Description ZernikeComputer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ZernikeMomentapply(IterableInterval<T> ii, Integer order, Integer repetition)TODOstatic intcomputeBinomialFactorial(int n, int m, int k, double[][] d)static PolynomcreateRadialPolynom(int n, int m, double[][] d)Creates a radial polynom for zernike moment with order n and repetition m-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.scijava.function.Functions.Arity3
andThen
-
-
-
-
Method Detail
-
apply
public ZernikeMoment apply(IterableInterval<T> ii, Integer order, Integer repetition)
TODO- Specified by:
applyin interfaceFunctions.Arity3<IterableInterval<T extends RealType<T>>,Integer,Integer,ZernikeMoment>- Parameters:
ii- theIterableIntervalto iterate overorder- the order of the moment to computerepetition- the repetition of the moment to compute- Returns:
- the zernike moment
-
computeBinomialFactorial
public static int computeBinomialFactorial(int n, int m, int k, double[][] d)- Parameters:
n- Order nm- Repetition mk- Radius kd- Pascal matrix- Returns:
- computed term
-
createRadialPolynom
public static Polynom createRadialPolynom(int n, int m, double[][] d)
Creates a radial polynom for zernike moment with order n and repetition m- Parameters:
n- Order nm- Repetition md- Pascal matrix- Returns:
- Radial polnom for moment of order n and repetition m
-
-