This transformation is also called "Bottom-Hat Transformation" .
Code for Black Hat Transform:
clc
clear all
close all
warning off
a=rgb2gray(imread('Jnorm.JPG'));
g=strel('disk',10);
es=imclose(a,g)-a;
subplot(1,2,1);
imshow(a);
title('Original Image');
subplot(1,2,2);
imshow(es);
title('Image after performing Black Top Hat Transformation');
Prerequisite:
Direct In-Built function for bottom-hat filtering/Black Top Hat Transform
https://www.mathworks.com/help/images...
White Top Hat Transform:
• Top-hat transform (2 Examples with Co...
Noise Removal using Morphological Operation:
• Noise reduction using Morphological O...
Image Closing in MATLAB:
• Image Closing in MATLAB
#MATLAB #DigitalImageProcessing