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?
I am not getting your point..but i have to find range for ripe ,unripe diseased mangoes.If its possible only single a channel or b channel then its fine...i have find the range from histogram using a channel but the misclassification is more..I think i have found wrong range...Would you please help me?
What I was trying to show you is that finding such areas strictly by a and b thresholding will not be that successful. I showed you in the other thread how to use HSV color space and set up sector-shaped gamuts that can do a better job of carving out background and mango, and can do a better job of determining color and disease or ripeness state, if you'd give it a chance. But you said that you had to ignore L and only use 2 of the available 3 bits of information for some strange reason. Perhaps that was because you don't have good control over L and your exposure, but that is why you should use anx-rite Color Checker Chart to calibrate your images.
Or you can look inmy File Exchange and use delta E, which uses LAB (all 3, not just a and b) to get a color difference. You can trace out background, ripe, non-ripe, and diseased areas and get their centroid. Then calculate the delta E from every pixel to the 4 centroids and assign it to which ever is closest. Kind of like linear discrminant analysis.
I have ignore L channel because it show the luminance..And for that i dont need it...My goal is try to use single channel to classify mango from the color distribution range with fast execution..I haven't time to study more as i have time constraint to complete this project...So if possible then please give me the code to complete it as fast as possible..
I can't justgive you the code . If this is for your university, then I'm sure your project does not say"Find someone on the internet to solve your problem for you, and give you code that works, then turn in their code."
I've already spent a lot of time for you and given you code to mask out the mangos. And I've given you demos (inmy File Exchange ) that show you how to convert the image into different color spaces and segment out areas based on color ranges such as thresholding in rgb, lab, or hsv color spaces, or by finding radii in lab color space (the delta E demo). All you have to do is to use them to find out what the range or mean value is for the 4 regions (background, ripe, non-ripe, diseased) and determine which region (class) every pixel should be assigned to.
No se puede completar la acción debido a los cambios realizados en la página. Vuelva a cargar la página para ver el estado actualizado.
Translated by
Seleccione un país/idioma
Seleccione un país/idioma para obtener contenido traducido, si está disponible, y ver eventos y ofertas de productos y servicios locales. Según su ubicación geográfica, recomendamos que seleccione: .
También puede seleccionar uno de estos países/idiomas:
Cómo obtener el mejor rendimiento
Seleccione China (en idioma chino o inglés) para obtener el mejor rendimiento. Los sitios web de otros países no están optimizados para ser accedidos desde su ubicación geográfica.