PANDORE Version 6 | GREYC-IMAGE |
plog computes the natural logarithm of the input im_in.
If im_in is an image then the new image im_out is built with the logarithm of each pixel. The problem of 0 is solved by using an epsilon. Thus the basis operation is as follows:
if (pixel(im_in) ==0 ) pixel(im_out)=log(epsilon) else pixel(im_out)=log(pixel(im_in))
The output image im_out is a always Float image.
For color or multispectral image, the logarithm is computed separately on each band.
If im_in is a graph then the new graph im_out is built with the natural logarithm of each node value.
Returns SUCCESS or FAILURE.
Computes the logarithm of the image tangram.pan :
plog tangram.pan a.pan
Logarithme népérien d'une image or d'un graphe.
Author: Régis Clouard