The green grass color selected in is depend by user clicked on the image screen. From user clicked, we get RGB color pixel. On the RGB pixel value selected on the system, we set the range plus and minus 10 from the RGB selected pixel value, see Figure 6 show the algorithm for color pixel range from pixel selected.
R pixel value range = ( R > R pixel value selection -10 ) and ( R < R pixel value selection +10)
G pixel value range = ( G > G pixel value selection -10 ) and ( G < G pixel value selection +10)
B pixel value range = ( B > B pixel value selection -10 ) and ( B < B pixel value selection +10)
Figure 6: show the algorithm for color pixel range from pixel selected
Figure 7: Algorithm count the grass pixels value.
From RGB pixel value range the system must to be find out how many pixels on the images grab, The pixels selected used the RGB pixel value range, the condition to count total its show on figure 7, where the group of this pixels total it’s call color of grass for the grass object. Now the images grass object will find out from the images. Images grass on the picture, it’s must to be spray on the real word, we discuss about images grass object for spraying on the next paragraph.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment