Hi,
I need to do an image segmentation on a leaf image. My image dataset has 2 types of images: some have white background and some have blue background. User "Image Analyst" here in Mathworks helped me to get the perfect result for images that have a blue background, but I don't get the right results for images that have a white background. So, what should I change to get this code to work in any background images (colored or white)?. I'm sorry for asking here again (I guess this must be simple), but I'm new at matlab programming and I couldn't develop a good solution by myself yet.
I'm providing the code I've been using for blue background images. Also, I'm adding two images samples I need to segment: one is a blue background imagne and the other is a white background image (I want only the leaf mask, that's why the new background must be black).
Thank you in advance!
Best Answer