Monday, August 31, 2009

Image pixel value

In the Visual Basic programming languages used the basic API pixel routines. This program system can read the RGB value every each pixels at all area of the image size. It’s still used function, f(x,y), with the array variables, function read one by one from first pixel to the end of pixel coordinate (see figure 1). The algorithm for read all pixels on that image is show on figure 5.

From two-dimension function, f(x,y);
   Read for f(x) = 0 until image width value
      Read for f(y) = 0 until image height value
         Get pixel value on coordinate pixel, f(x,y);
      End loop
   End loop

This algorithm (figure 5) will be showing all pixels value at all coordinate in image size on program, the total coordinate value is 108900 pixels locations. Using pixel value will be extract to the Red, Green, and Blue values, it call RGB color pixel. RGB output color pixel values that range from 0 to 255. as a result images can be analysis using the RGB color pixel, then from this result in any image grab conclusion is; the system can know what is color on that images have every each coordinates . From the knowledge the color of image, the system will be see that images grass and can know it’s the green grass. It’s need to spray, be discuss on the next paragraph.

No comments:

Post a Comment