How can I apply a natural logarithm to an image?
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Lucaci Diana
am 26 Nov. 2020
Bearbeitet: KALYAN ACHARJYA
am 26 Nov. 2020
%%4 image natural log test
%%apply natural log function on the image 'image' to get 'ln_image'
%%note: you need to use mat2gray to convert the format of the image
%also, change negative values to postivie for display purpose
%add instruction here
ln_image = ;
subplot(2,3, 5);
%use display image with scaled colors command (not imshow). put title 'natural log'
%add instructions here
imagesc(ln_image);
title('Natural Log');
3 Kommentare
KALYAN ACHARJYA
am 26 Nov. 2020
Bearbeitet: KALYAN ACHARJYA
am 26 Nov. 2020
@Lucaci Most members of this community are great, they are giving their precious time to help us. It is expected to take the suggestions in a positive way. Trust me, these people are very knowledgeable and they are guiding millions, like you and me.
Seems home work question, in such cases your own efforts are expected. If you have any specific question, let us know..?
Akzeptierte Antwort
Image Analyst
am 26 Nov. 2020
Did you try ln_image =log(mat2gray(image))?
By the way it's a terrible idea for them to tell you to use the word "image" for your variable name. image() is a built-in function. If there are any zeros in your image you should add 1 to the image before taking the log of it.
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Image Processing Toolbox finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!