Query Regarding ZernikeFeatureComputer Implementation in knime library


it is taking too much time to computing higher order zernike moments.
Can i pre-calculate the values of all the radial polynomials upto certain degree, order and for a particular image size, as for calculating a radial polynomial for a particular order and degree i just need a order, degree and r(distance from the origin to the given co-ordinates). So i can compute all the values and store in a particular file and whenever i required certain radial polynomial i just need to read from file(without wasting my computation on finding factorials).
Is it the right way?

Maybe it would then even make sense to put the precomputed factorials as statics into the code.

Any thoughts @dietzc?

sure, if it’s more efficient and producing the same results… why not?