
5-2
5.1.1.4 Area, Center of Gravity and Major Axis Angle
[ 1 ] Area
The board binarizes image data taken from the camera and counts each pixel
of white (1) and black (0) in the designated range of the window area. The
µVision board counts the area by real-time binarization without changing the
brightness value of each pixel in the window. Therefore, you do not have to
binarize image data beforehand.
Window
1 (Wh) Area=13
0 (Bl) Area=12
Fig. 5-2 Area
[ 2 ] Center of Gravity
Image data taken from the camera displays the object as a plane. The point
where the object weight is balanced on the plane is called the center of gravity.
The µVision board obtains the center of gravity from the pixels of white (1) and
black (0) in the designated range of the window. The center of gravity is
expressed with coordinate values of X and Y.
Window
Center of gravity
Object
Fig. 5-3 Center of Gravity
Comentários a estes Manuais