Sharpening image using first order derivative

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

댓글 수: 2

Jan
Jan 2021년 2월 10일
The derivative of what?
The first order derivative using sobel or robert etc.,

댓글을 달려면 로그인하십시오.

 채택된 답변

Image Analyst
Image Analyst 2021년 2월 10일

0 개 추천

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, []);

추가 답변 (0개)

질문:

2021년 2월 10일

댓글:

2021년 2월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by