Logarithmic transformation functions can be used to compress the dynamic range of ai image in order to bring out features that were not originally as clear. & Close all open figures and clear all workspace variables. % Generate a logarithmic transformation function. clear ;clc;close all x = 0:255; c = 255 / log (256); y=c*log(x + 1); figure, plot (y),title('Log Mapping Function'), axis tight, axis square % Use the transformation function to generate the adjusted image. I = imread ('tire.tif'); I log = uint8 (v(T + 1)) :
Logarithmic transformation functions can be used to compress the dynamic range of ai image in order to bring out features that were not originally as clear. & Close all open figures and clear all workspace variables. % Generate a logarithmic transformation function. clear ;clc;close all x = 0:255; c = 255 / log (256); y=c*log(x + 1); figure, plot (y),title('Log Mapping Function'), axis tight, axis square % Use the transformation function to generate the adjusted image. I = imread ('tire.tif'); I log = uint8 (v(T + 1)) :
New Perspectives on HTML5, CSS3, and JavaScript
6th Edition
ISBN:9781305503922
Author:Patrick M. Carey
Publisher:Patrick M. Carey
Chapter3: Designing A Page Layout: Creating A Website For A Chocolatier
Section3.3: Visual Overview: Layout With Positioning Styles
Problem 4QC
Related questions
Question
Shows the results of applying gamma correction to an input image using two different values of n, how does the shape of the curve change if we were to use a different value for n?
![Logarithmic transformation functions can be used to compress the dynamic range of an
image in order to bring out features that were not originally as clear.
* Close all open figures and clear all workspace variables.
% Generate a logarithmic transformation function.
clear ;clc;close all
x = 0:255; c = 255 / log (256) ;
y=c*log (x + 1);
figure, plot (y),title('Log Mapping Function'), axis tight, axis square
% Use the transformation function to generate the adjusted image.
imread ('tire.tif');
= I
I_log = uint8 (y(I + 1)) ;
Figure, subplot (2,2,1), imshow (I), title('Original Image');
subplot (2,2, 2), imshow(I_log), title('Adjusted Image');
subplot (2,2,3),imhist(I),title('histogram of original image');
subplot (2,2,4), imhist(I_log), title ('histogram of log image');
% The inverse of the log function is as follows.
exp (x/c) - 1;
I_invlog
figure, subplot (3,1,1), plot (z), title ('Inverse-log Mapping Function');
subplot (3,1,2), imshow (I_invlog), title('Adjusted Image');
subplot (3,1,3), imhist(I_invlog), title ('histogram of invlog image');
= uint8 (z (I_log + 1)) ;](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa399817f-fafa-4575-9d3c-7151d439e0d0%2Fece5db4c-a3c1-40f6-b19a-f4f2f60e45f9%2F6frtovb_processed.png&w=3840&q=75)
Transcribed Image Text:Logarithmic transformation functions can be used to compress the dynamic range of an
image in order to bring out features that were not originally as clear.
* Close all open figures and clear all workspace variables.
% Generate a logarithmic transformation function.
clear ;clc;close all
x = 0:255; c = 255 / log (256) ;
y=c*log (x + 1);
figure, plot (y),title('Log Mapping Function'), axis tight, axis square
% Use the transformation function to generate the adjusted image.
imread ('tire.tif');
= I
I_log = uint8 (y(I + 1)) ;
Figure, subplot (2,2,1), imshow (I), title('Original Image');
subplot (2,2, 2), imshow(I_log), title('Adjusted Image');
subplot (2,2,3),imhist(I),title('histogram of original image');
subplot (2,2,4), imhist(I_log), title ('histogram of log image');
% The inverse of the log function is as follows.
exp (x/c) - 1;
I_invlog
figure, subplot (3,1,1), plot (z), title ('Inverse-log Mapping Function');
subplot (3,1,2), imshow (I_invlog), title('Adjusted Image');
subplot (3,1,3), imhist(I_invlog), title ('histogram of invlog image');
= uint8 (z (I_log + 1)) ;
![% Create a negative transformation function and show the result after applied to the
moon image.
imread('moon.tif');
= uint8(255:-1:0);
y
I_neg
y (I + 1);
figure, subplot(1,3,1), plot(y),title('Transformation Function'),
xlim ( [0 255]), ylim([0 255]);
subplot (1,3,2), imshow (I), title ('Original Image');
subplot (1,3,3), imshow (I_neg), title('Negative Image');
I_cmp
imcomplement (I); figure, imshow(I_cmp)](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa399817f-fafa-4575-9d3c-7151d439e0d0%2Fece5db4c-a3c1-40f6-b19a-f4f2f60e45f9%2F4ta4acq_processed.png&w=3840&q=75)
Transcribed Image Text:% Create a negative transformation function and show the result after applied to the
moon image.
imread('moon.tif');
= uint8(255:-1:0);
y
I_neg
y (I + 1);
figure, subplot(1,3,1), plot(y),title('Transformation Function'),
xlim ( [0 255]), ylim([0 255]);
subplot (1,3,2), imshow (I), title ('Original Image');
subplot (1,3,3), imshow (I_neg), title('Negative Image');
I_cmp
imcomplement (I); figure, imshow(I_cmp)
Expert Solution
![](/static/compass_v2/shared-icons/check-mark.png)
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution!
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 6 images
![Blurred answer](/static/compass_v2/solution-images/blurred-answer.jpg)
Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Recommended textbooks for you
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT
![New Perspectives on HTML5, CSS3, and JavaScript](https://www.bartleby.com/isbn_cover_images/9781305503922/9781305503922_smallCoverImage.gif)
New Perspectives on HTML5, CSS3, and JavaScript
Computer Science
ISBN:
9781305503922
Author:
Patrick M. Carey
Publisher:
Cengage Learning
![EBK JAVA PROGRAMMING](https://www.bartleby.com/isbn_cover_images/9781305480537/9781305480537_smallCoverImage.jpg)
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781305480537
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT