<<
<<
>>
>> I am doing classification of crop and weed the I have detected the crop but it is displaying in separate windows please help me to obtain all crops in one image thanks in advance

2 comentarios

Adam
Adam el 5 de Dic. de 2014
You haven't included any code. Since they appear to be non-overlapping segmentations can you not just add the images together?
amogha
amogha el 5 de Dic. de 2014
Sorry forgotten to attach code.

Iniciar sesión para comentar.

 Respuesta aceptada

Image Analyst
Image Analyst el 5 de Dic. de 2014

0 votos

I don't know how they got separated in the first place. If you do color segmentation you'll get all of them. See the color segmentation demos in my File Exchange, particularly the one on segmenting by hue. http://www.mathworks.com/matlabcentral/fileexchange/?term=authorid%3A31862

9 comentarios

I have done the segmentation based on the area threshold. Which area is more than 6000 is classified as crop. And weed also separately displayed.
Thanks in advance.
amogha
amogha el 8 de Dic. de 2014
Hello image analyst, I have gone through the simple colour detection by hue, in that they have illustrated till measurement of area, based on the area how do we classify the objects.
Image Analyst
Image Analyst el 8 de Dic. de 2014
Sorry, I doubt you'll be able to tell green weeds from green crops in your photos.
amogha
amogha el 9 de Dic. de 2014
Hello I am trying to classify the weeds which is of same colour as crop.
Image Analyst
Image Analyst el 9 de Dic. de 2014
I know. But I can't see them in your photo. Can you? Why don't you upload an annotated picture with arrows pointing to all the weeds and describe what is different looking about them?
amogha
amogha el 10 de Dic. de 2014
<<
>>
Image Analyst
Image Analyst el 10 de Dic. de 2014
Well that's a completely different image. However I still don't know what's a weed and what's a desired crop. What about the first image with the large field of view, were you able to see weeds in it?
amogha
amogha el 12 de Dic. de 2014
Editada: amogha el 12 de Dic. de 2014
Hello in the new image attached, right top image is weed and bottom is crop. In the large field view the weed are null but crops are getting separated after execution. Thank You
Image Analyst
Image Analyst el 12 de Dic. de 2014
If all your images are like the one with the small field of view you might be able to do it for crops of that specific color and weeds of that specific color because they are different colors and sizes. In the one with the field of view of the whole field, the crops are probably so much bigger than the weeds that you can't even see them. You can get the whole image in one binary image. In fact I bet that is what you started with. I don't think you started with separate binary images - it started as one and you separated them for some reason. The complete image is called BW in your code, so if that's what you want, you already have it.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Agriculture en Centro de ayuda y File Exchange.

Preguntada:

el 5 de Dic. de 2014

Comentada:

el 12 de Dic. de 2014

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by