Finally, the result is a list of M8CCC showing the direction
taken in moving from each boundary pixel to the next, as
shown in Fig. 2. The number “8” of the M8CCC is counted
and the number of clustered fruits can be calculated ac-
cording to the equation (3).