Features of Cashew Nut's Kernel

Features of Cashew Nut's Kernel

I'm working with my semestral project. I need to extract the Kernel from the shell and find its features (Color, Shape and Size).

(getting the Color)I'm able to do the colorfiltering (the RGB-thing) but I think its not that helpful because not all are the same color.I only use RGB-thing because for me it is less complicated.

(getting the Shape)After colorfiltering I will use the image with edge detection (canny) which will give me only the edges.I also use different filters like dilation, erosion and closing just to get only the kernel's edge but it is not yet that decent and it always includes the shell.

(getting the size)Still working on this.

The cashew nut image (original image).

nutimage2.jpg (20.41 KiB) Viewed 2921 times

With colorfiltering RGB-thing. I use scrollbar to change the RGB and sometimes I used color picker to set the RGB. I always increase the RGB setting for the disappearance of the shell.(screenshot)