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.

Images grab

HOW to read the image pixels on the picture grab
by Khairuddin Abdul Rahman 31.8.2009 03:33pm

we used USB webcam for capture the images (example images from capture see figure 1). Images capture will be displayed on the screen computer used visual basic programming languages for analysis this images. An image, it is generally sampled into a rectangular array of pixels. Each pixel has an (x,y) coordinate that corresponds to its location within the images (figure 1). The x coordinate is the pixel’s horizontal location; the y coordinates its vertical location. Easy to say, it is size of image; height is horizontal; width is vertical. It’s called images size. On this program we fix that images size to 300 (height) x 363 (weight) pixels (see figure 1).

Now, from pixels size of image be defined as a two-dimension function, f(x,y), where x and y are spatial (plane) coordinate, the amplitude of f at any pair of coordinates (x,y) is called the intensity or gray level of the images of the point  [1]. From a density value in the gray-level images will be calculated by linear combination of an RGB vector of the color image [2], [3], [4], is show on figure 2.


From this linear combination of an RGB vector (figure 2), the problem to defined of the green grass now can be dealt with on this read. We be formulated as an ill-posed problem which searches for an RGB vector from a density value as a solution.

Advanced images analysis for spraying system project.

Introduction
This paper discuss about development of Spraying System at ITMA (SFTL), UPM (see Figure A1). This system used two units digital camera. This camera control the areas for spraying system. The camera will be capture the images and display on the screen computer. By the user clicked on the screen computer, the signal computer will be created. This signal from computer be transfer to the PC Parallel Port for send the volt for on the pump and on the nozzle. Then the system will be automatically spraying the grass. This project used ATV (All Terrain Vehicle), with computer system and PC parallel port controller, poison tank and pump, two units webcam and 6 spraying nozzle, show on figure A2.