ParaboloidParams3d = | paraboloidImgFit2d (inImg) |
ParaboloidParams3d = | paraboloidImgFit2d (inImg,maskImg) |
algorithm fitting intensities of a 2d image with a 3d paraboloid
Considering a 2d image as a 3d surface, with the pixels intensities as the heights, this algorithm computes the paraboloid that best-fits this 3d surface. The paraboloid is described by the ipsdk::imaproc::attr::ParaboloidParams3d structure, that contains the parameters of its equation:
Here is an example of best-fitting paraboloid calculation on a 8-bits grey level image:
This algorithm can be used to artificially extract a white image from an input one, in order to apply next a shading correction to the input image. See Shading correction (white image represented as a paraboloid)