Research Article

Investigations of CNN for Medical Image Analysis for Illness Prediction

Algorithm 3

A pseudocode to apply color to select the exudates from image patches.
Collect RGB Image of Same Dimension
Convert RGB Images to Arrays
Initialize the Exudate Color Values
Apply YUV on RGB to Get Values 'V'
Generate Histograms for all YUV Converted Images
On Respective RGB Images with High Contrast
Compute Green Band average and Blue Band average
If G and B averages are in the range of Exudate Colors
Then
 Image Contain Exudates
Else
 Image does not Contain Exudates
End If