| [mmdrobotop] [Up] [mmdsoil] | Demonstrations |
| User Feedback |
The input image is a gray-scale image of a ruler, that has a number touching a tick mark. This number and mark are detected based on morphological and connected filtering.
The close top-hat operator followed by a thresholding is applied.
b = mmthreshad( mmcloseth(a,mmsebox(5)),40);
Warning: converting image from scalar to uint8
mmshow(b);
![]() |
|
| b |
It detects all objects vertically connected to the ruler tick mark. Note that the 3x1 rectangle is used as structuring element in the vertical reconstruction.
f = mminfrec(d,b,mmseline(3,90));
mmshow(f);
![]() |
|
| f |
It uses an opening by an elementary cross structuring element to eliminate the artifacts.
h = mmopen(g);
mmshow(h);
![]() |
|
| h |
It detects the objects connected to ruler tick marks. A reconstruction from the ruler marks detected is applied.
i = mminfrec(h, b);
mmshow(i);
![]() |
|
| i |
| [mmdrobotop] [Up] [mmdsoil] | |
| User Feedback | |
| Copyright (c) 1998-2008 by SDC Information Systems |