Lesson 28 Max and Min Filtering in Image Processing using Matlab

Опубликовано: 21 Ноябрь 2023
на канале: Nuruzzaman Faruqui
116
0

Max and min filtering in image processing using MATLAB – a short tutorial to help students pursuing image processing or computer vision related courses. This tutorial will help you to apply both max and min filters on color image. In image processing, we frequently need to apply max and min filters. Although it is a very common operation, sometimes the lack of programming practice gives us hard time to apply filters on image. You can copy the MATLAB code for max and min filtering in image processing from here. In a nutshell, this tutorial will help you saving time and getting a quick error free result when you need to apply max and min filter on images.
You can copy the code from here:

Original=imread('mmf.png'); %Read in image
BW = im2bw(Original,0.6); %Convert into black and white image

minf=@(x) min(x(:)); %set 'min()' filter
maxf=@(x)max(x(:)); %set 'max()' filter
min_Image=nlfilter(BW,[3 3],minf); %Apply over 3 x 3 neighbourhood
max_Image=nlfilter(BW,[3 3],maxf); %Apply over 3 x 3 neighbourhood

subplot(2,2,1), imshow(BW), title('Original'); %Display image
subplot(2,2,2), imshow(min_Image), title('Min'); %Display min image
subplot(2,2,3), imshow(max_Image), title('Max'); %Display max image


Смотрите видео Lesson 28 Max and Min Filtering in Image Processing using Matlab онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Nuruzzaman Faruqui 21 Ноябрь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 116 раз и оно понравилось 0 людям.