Sharpening image using first order derivative

what is the MATLAB code to sharpen an image using first order derivative?

2 Kommentare

Jan
Jan am 10 Feb. 2021
The derivative of what?
Nirmala M S
Nirmala M S am 15 Feb. 2021
The first order derivative using sobel or robert etc.,

Melden Sie sich an, um zu kommentieren.

 Akzeptierte Antwort

Image Analyst
Image Analyst am 10 Feb. 2021

0 Stimmen

You can sharpen the image by adding the Laplacian to the original image. This can all be done in one convolution:
windowWidth = 3;
kernel = -1 * ones(windowWidth);
middleRow = ceil(windowWidth / 2);
kernel(middleRow, middleRow) = 2 * windowWidth ^ 2 - 1;
sharpenedImage = conv2(double(grayImage), kernel, 'same');
imshow(sharpenedImage, []);

Weitere Antworten (0)

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by