Create successful ePaper yourself
Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.
5.7. DEVICES 107<br />
Figure 5.13: Resistors and capacitors (left) and ICs (right).<br />
components. Unfortunately, they have become too large by the dilation. Another thresholding<br />
for each connected component will detect the dark pixels of each IC. Finally, you can specify<br />
the enclosing rectangles analogously to the resistors and the capacitors (see above).<br />
ØÖ×ÓÐ ´ÁÒØÒ×Øݸ Ö¸ ¼¸ ¼µ<br />
ÐØÓÒÖØÒн ´Ö¸ ÖÐظ ½¸ ½µ<br />
ÓÒÒØÓÒ ´ÖÐظ ÁÄÖµ<br />
ÒÒÐ× ´ÁÄÖ¸ ÁÒØÒ×Øݸ ÁÄÖÖݵ<br />
ØÖ×ÓÐ ´ÁÄÖÖݸ Á×Ö¸ ¼¸ ¼µ<br />
×ÔØÖÒ× ´Á×Ö¸ Á¸ ³ÖØÒо³µ<br />
The right side of figure 5.13 shows the resulting ICs. We have to mention two aspects<br />
about the program segment above. Here the operator ÒÒÐ× has been used instead<br />
of ÖÙ ÓÑÒ. This is necessary as several regions have to be “supplied” with gray values.<br />
The situation of previous programs was quite different: there the number of valid pixels of one<br />
image has been restricted. From this follows the second point: here the operator ØÖ×ÓÐ<br />
gets several images as input. 2 The thresholding is performed in every image. Thus you receive<br />
as many regions as input images.<br />
Finally, the segmentation of IC contacts has to be done. They are bright and small. Thus it<br />
is easy to extract them using a dynamic thresholding (compare chapter 5.3). However, several<br />
other tin elements on the board remain a problem, because they have to be distinguished from<br />
the IC contacts. This can be done by restricting the search on a region of interest. IC contacts<br />
may only appear either on the right or the left side of IC’s. The coarse region of interest is<br />
defined by enlarging the IC regions with a following set subtraction. Then the result is resized<br />
appropriately by using another dilation. Figure 5.14 shows the operator result on the left side.<br />
Now you only have to intersect the result of the thresholding with the region of interest.<br />
2 One matrix is shared by several iconic objects to reduce costs of memory and computation time.<br />
HALCON 6.0