Reputation: 496
I found this microscope image and I wonder what are the ways to remove the white lines from it using Matlab?
Upvotes: 1
Views: 2060
Reputation: 114796
You can use simple morphological operations combined with roifill
to get a preliminary result:
img = imread('https://i.sstatic.net/4nBqS.png');
img = im2double(img(:,:,1));
bw = img > .8; %// get a mask of grid lines (approx.)
bw = imdilate( imerode( bw, ones(2) ), ones(4) ); %// mask for roifill
nImg = roifill( img, bw );
Resulting with
Upvotes: 1