Recall The 8-Connected Components
WYSIWYG permits analysis by “inspection”
...
Count := 0;
repeat
Next := Im & (Im@n | Im@nw | Im@w);
Next := Next | (Im@w & Im@n & !Im);
Conn := Im@e | Im@se | Im@s;
Conn := Im & !Next & !Conn;
Count += Conn;
Im := Next;
smore := |<<Next;
until !smore;
...
Previous slide
Next slide
Back to first slide
View graphic version