Digital Signal Processing Reference
In-Depth Information
marking method, and calculates the area of these regions, and then the largest area is
located by to remove the smaller the area, Fig.10(b) shows remove image noise by
regional marking method.
(a) (b)
Fig. 10. Remove image noise: (a) Binary image after adaptive threshold; (b) Binary image of the
removed noise
4.3
Liquid Surface Location
Fig.10(b) shows milk regional surface is not level, thus can not be used to liquid surface
positioning. We propose a scanning method for solve this problem. Then, Split out a
sub-region by scanning methods, including the background region and liquid region.
Given that W is the region width and S is the liquid area. The following equation is used
to obtain average height.
S
(4)
H
=
W
Fig.11 gives the process of our algorithm with sub-region by scanning methods.
Fig. 11. Liquid surface locate: (a) Binary image of the removed noise; (b) Split out a sub-region
by scanning methods; (c) liquid surface smooth results
Search WWH ::




Custom Search