PANDORE Version 6 GREYC-IMAGE

phitormiss



Performs hit or miss transformation.



Synopsis

phitormiss [-m mask] [im_se1|-] [im_se2|-] [im_in|-] [im_out|-]

Description

phitormiss finds location of one shape among a set of shapes. The shape is defined by two structuring elements: im_se1 is a structuring element that specifies the object part, and im_se2 specified the background part. The transformation can be summarised by the question: "does im_se1 fits the objet part while im_se2 fits the objet background?."

[UHMT(f)](x) = [erod_se1(f)](x) - [dil_se2](x) if [erod_se1(f)](x) > [dil_se2](x)
               0 otherwise

Inputs

Outputs

Result

Returns SUCCESS or FAILURE.

Examples

See also

Morphology,

C++ prototype

Errc PHitOrMiss( const Img2duc &im_in, const Img2duc &im_se1, const Img2duc &im_se2, Img2duc &im_out, int size );

Author: Régis Clouard