How to do the acquired images(white blood cells) are sharpened using a gaussian un-sharp mask ?

1 次查看(过去 30 天)
Sir ,l am doing my project on wbc classification using CNN.So I have wbc image datasets it's first step is image enhancement.it including mainly 3 process,they are Noise removal,contrast adjustment and image sharpening. Here the acquired images are sharpened using a gaussian un-sharp mask. so how to do these all for wbc image.can you please help me to solve these problems.
<<
>>

回答(1 个)

prabhat kumar sharma
Hello Keerthi,
I understand that you are tyring white blood cell (WBC) classification using Convolutional Neural Networks (CNN), For this preprocessing the images is an important step to improve the performance of your model. Here's how you can perform the three main image enhancement processes you mentioned using MATLAB:
% Read the image
wbcImage = imread('wbc.jpg');
wbcImage = rgb2gray(wbcImage);
% Noise removal with Gaussian filter
filteredImage = imgaussfilt(wbcImage, 2);
% Contrast adjustment
contrastAdjusted = imadjust(filteredImage);
% Image sharpening with unsharp mask
sharpenedImage = imsharpen(contrastAdjusted, 'Radius', 2, 'Amount', 1);
% Display the original and enhanced images
subplot(1, 2, 1);
imshow(wbcImage);
title('Original Image');
subplot(1, 2, 2);
imshow(sharpenedImage);
title('Enhanced Image');
Output:
I hope it helps!

类别

Help CenterFile Exchange 中查找有关 Biomedical Imaging 的更多信息

产品


版本

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by