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.
<<
>>
0 个评论
回答(1 个)
prabhat kumar sharma
2024-2-22
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!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Biomedical Imaging 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!