Enhancing Image with Histogram Matching and Median Filter
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Qvna Lhyvnav
le 24 Jan 2020
Commenté : Qvna Lhyvnav
le 23 Fév 2020
I want to enhance the MRI image by histogram matching and median filter, but the result is unexpected with this code:
% Grayscaled Image
A = imread ('D:\TESIS\1.jpg');
B = rgb2gray(A);
% High Pass Filtered Image
h = fspecial('log', [3 3], 0.5);
C = imfilter (B,h);
% Enhanced Image
D = imhistmatch(B,C);
E = medfilt2(D);
figure;
subplot(2,2,1), imshow(A); title('Original Image');
subplot(2,2,2), imshow(B); title('Grayscaled Image');
subplot(2,2,3), imshow(C); title('High Pass Filtered Image');
subplot(2,2,4), imshow(D); title('Enhanced Image');
My image is
and I'm expecting the result is similar to this
instead of in the code. I am wondering what is missing. Thank you.
![1.jpg](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268045/1.jpeg)
![Test.png](https://www.mathworks.com/matlabcentral/answers/uploaded_files/268046/Test.png)
2 commentaires
Image Analyst
le 24 Jan 2020
Why don't you plot all three histograms (before, reference, and after) to see what they look like?
If you want an EXACT histogram match, see My File Exchange for code that does that much more exactly than the built-in function.
Réponse acceptée
KALYAN ACHARJYA
le 24 Jan 2020
Modifié(e) : KALYAN ACHARJYA
le 24 Jan 2020
I want to enhance the MRI image by histogram matching and median filter
Histogram Matching:
Are you considering with target image?
Median filter:
A median filter use for signal smoothing, it may smooth the internal part, but I don't think it can generate the clear border view.
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Image Filtering and Enhancement dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!