PANDORE Version 6 GREYC-IMAGE

pzerocross



Locates zero crossing.



Synopsis

pzerocross connexity value [-m mask] [im_in|-] [im_out|-]

Description

pzerocross detects the place where the pixel is a transition between two neighbor pixels. A transition is detected when:

The output image im_out is a unsigned char grayscale image (Img2duc or Img3duc).

This operator is mainly used to detect zero crossing of the laplacian. For example, the value is equal to 127 for unsigned char images and 0 for signed long image.

Parameters

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

Performs an edge detection using the DOG algorithm (Difference Of Gaussian):

   pexponentialfiltering 0.2 tangram.pan a.pan
   pexponentialfiltering 0.8 tangram.pan b.pan
   psub a.pan b.pan c.pan
   pzerocross 8 0 c.pan out.pan

See also

Edge detection

C++ prototype

Errc PZeroCross( const Img2duc &im_in, Img2duc &im_out, int connexity, Uchar value );

Version française

Localisation des changements de signe des valeurs de pixels.


Author: Régis Clouard