User defining image filter
1 visualización (últimos 30 días)
Mostrar comentarios más antiguos
Subhransu Sekhar Bhattacharjee
el 19 de Mzo. de 2021
Comentada: Image Analyst
el 20 de Mzo. de 2021
I have a problem where I have to input an image and a kernel and it must give an output image. The kernel could be of any type. I have been trying various techniques. Could be really helpful if somone could post the code of imfilter in a readable way or maybe give some kind of a code as per the problem statement which would help me understand my mistake.
0 comentarios
Respuesta aceptada
Image Analyst
el 19 de Mzo. de 2021
Did you try something like
grayImage = imread('moon.tif');
kernel = ones(31) / 31^2;
filteredImage = imfilter(grayImage, kernel);
2 comentarios
Image Analyst
el 20 de Mzo. de 2021
If you need to avoid built-in functions like imfilter() and conv2() for some reason (WHY????), see my "manual" version of convolution.
Más respuestas (0)
Ver también
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!