Wednesday, September 2, 2009

Create partitions on your picture grab

1 picture grab (see figure 1) for 3 units nozzle. So this picture will be divided to 3 partition (see figure 3) for 3 nozzle spraying area. Every portion area for handle 1 nozzle. See figure 4 show algorithm for create 3 partition area from image pixel.

If x < and x =< 121 then
    [Partition for 1st nozzle area]
Else If x < 121 and x =< 242 then
    [Partition for 2nd nozzle area]
Else If x < 242 and x =< 363 then
    [Partition for 3rd nozzle area]
End if

figure/diagram 4: show algorithm for create 3 partition area from image pixel.

No comments:

Post a Comment