If I=1 is selected then sorting will be done on basis of color
In our experiment we have checked three colors red, green
yellow. Because it‟s a 3 conveyor belt sorting arrangement so
it is permitted to take only three colors. Now by matlab
function area of all connected region are found, then out of
these area maximum area is found. After that a particular
threshold value is defined, if the area is greater than this
threshold value than the objected is declared either red or
green or yellow colored object.