Daniel Stanley Tan edited subsection_Measuring_the_Infestation_Level__.tex  about 8 years ago

Commit id: 09108405db1fa0e3d06b0bf07b4c512ac99da651

deletions | additions      

       

After labeling the clusters, they were transformed into feature vectors to be used in training the classifier. We tested on two sets of feature vectors, one composed of the average values of red, green, and blue in the RGB color space, and the other composed of the average values of a* and b* in the L*a*b* color space, both taken over all the pixels within the cluster. They are basically the centroids of the clusters represented in two different color spaces.  Lastly, the infestation level $I$ assigned to the fruit is measured by the ratio of the area of the disease $A_d$ to the area of the fruit $A_f$ divided by 2 (See Equation ). \ref{eq:infLevel}).  The area of disease and area of the fruit is estimated by number of infected pixels associated with the disease and the number of pixels of the cacao respectively. The adjustment factor $\frac{1}{2}$ is based on the reason that only one side of the cacao pod can be captured by an image. $$\label{eq:infLevel} I = \frac{A_d}{2A_f} × 100 (\%)$$