Wednesday, September 2, 2009

Get pixel value on coordinate pixel

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

Figure/diagram 5: algorithm for get pixel value from image.

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.

1 comment:

  1. Hi i need series of pixels which is connecting with each other, i.e array of pixel according to line move conti.. and stop when i got the first received pixel position.
    Pls help me out.

    ReplyDelete