How should find range of disease area in mango image?
Mostrar comentarios más antiguos
I m working on color classification project in which i want to find color range of disease area in Lab color model.But problem is to use only a and b channel for finding range of disease area..How to find threshold from histogram of a and b channel?
if true
no_of_up=1;
for i=1:area
if(a_ch(i)>=110 && a_ch(i)<=125)
no_of_up = no_of_up + 1;
end
end
Unripe_per = (no_of_up.* 100)./ area;
%%percentage of ripeness
no_of_rp=1;
for i=1:area
if(a_ch(i)>=120 && a_ch(i)<=139)
no_of_rp = no_of_rp + 1;
end
end
ripe_per = (no_of_rp.* 100)./ area;
%%percentage of diseased
no_of_dp=1;
for i=1:area
if(a_ch(i)>=135 && a_ch(i)<=140)
no_of_dp = no_of_dp + 1;
end
end
Diseased_per = (no_of_dp.* 100)./ area;
end
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Agriculture en Centro de ayuda y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

