PANDORE Version 6 | GREYC-IMAGE |
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
Returns SUCCESS or FAILURE.
cat > se1.txt << EOF 255 0 3 255 1 3 255 2 3 255 3 3 255 4 3 EOF cat > se2.txt<<EOF 255 2 0 255 2 1 255 2 5 255 2 6 EOF ptxt2pan 0 5 7 0 se1.txt se1.pan ptxt2pan 0 5 7 0 se2.txt se2.pan pgradient 1 examples/tangram.pan a.pan b.pan phitormiss se1.pan se2.pan a.pan c.pan
Author: Régis Clouard