hs100
hs100

Reputation: 496

Remove lines from image - matlab

I found this microscope image and I wonder what are the ways to remove the white lines from it using Matlab?

enter image description here

Upvotes: 1

Views: 2060

Answers (1)

Shai
Shai

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
enter image description here

Upvotes: 1

Related Questions