The goal is to produce a (binary) mask on the algae and I attempted following steps:
– turn image gray with default function rgb2gray()
– image smoothing by gaussian filtering with sigma 0.5
– obtain image gradient with ingredient() using 'CentralDifference'
– Sobel Edge detection
– Canny Edge detection 2 times
– image dilation with square shape structural elements size 2 pixels and fill in
– image erosion with diamond shape size 3 pixels
The result is not good. The main problem is that my program has a hard time figuring out the ambiguous contour of the original image. It also reads into too much noise (I suspect it will get better if I increase the sigma of gaussian filter)
Can someone help me with this? I have some other 500 images that I need to create masks for. They are all of the same color tone (gray green type)
Best Answer