In this paper, machine vision approach for
detecting and inspecting circular parts is presented. The
merit of object-oriented software development language
VC++ and the character of Matlab Engine used in digital
image processing have been introduced in the paper. The
new method of mixed programming between Matlab and
Visual C++ has been proposed. Circle images must be
preprocessed first. Square median filter has been used to
eliminate image noise. A weighted edge threshold method
has been applied to segment the object image into a binary
one. Then the number, area and center coordinate of
circles can be detected by using of mixed programming,
namely, VC++ getting Matlab engine. It is proved that it
can shorten develop period and improve system capability
by using these two languages to compile program.