How to do a 2D convolution result with the log operator for an Image.
Mostrar comentarios más antiguos
Hi, I want to apply an LOG enhancement mask for image enhancement using conv2. The LOG enhancement mask to be convolved with the image is: h = [-1 -1 -1; -1 9 -1; -1 -1 -1]; So far this is the code I have but the image is not enhanced at all. Any help would be appricated.
image = imread('mdb001.jpg');
imshow(image);
h = [-1 -1 -1; -1 9 -1; -1 -1 -1]
grayimage= rgb2gray(image);
im=grayimage;
i=conv2(h,im);
figure()
imshow(i)
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Image Filtering and Enhancement en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
