Image noise removal in medical image

2 Ansichten (letzte 30 Tage)
RN
RN am 9 Jul. 2021
Beantwortet: Tarunbir Gambhir am 13 Jul. 2021
Hello,
I have been trying to remove the noise in an image (image1.png). I have been using the median filter and bwareaopen commands. I just need the center bright white portion as in image2.png. It would be great if anyone could help.
clc;
clear;
close all
jpgFilename = strcat( num2str(k), '.bmp');
imageData = imread(jpgFilename);
% Read the image
BW2 = bwareaopen(imageData,2);
figure,imshow(BW2);
b = imsharpen(BW2,'Amount',8);
se = offsetstrel('ball',2,2);
b = imdilate(b,se);
BW3 = bwareaopen(b,2);
figure,imshow(BW3);

Antworten (1)

Tarunbir Gambhir
Tarunbir Gambhir am 13 Jul. 2021
You can use many of the available morphological operations to acheive your taget image. In your case, I think image erosion will help in removing the noise. You can try the following:
% Read the image
imageData = imread('image1.png');
BW = bwareaopen(rgb2gray(imageData),2);
se = strel('disk',2);
I = imerode(BW,se);
figure,imshow(I);
You can try different structuring element options that fits your requirement.

Kategorien

Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by