Answered step by step
Verified Expert Solution
Question
1 Approved Answer
can you solve it coding please Task 1 [5+15 Marks] The range of intensity values of an image f is [lf,h], where lf and hf
can you solve it coding please
Task 1 [5+15 Marks] The range of intensity values of an image f is [lf,h], where lf and hf are its lowest and the highest intensity values. It is required to transform f into another image g, which has the intensity values in the range [lg,hg], where lg and hg are its lowest and highest intensity values. (i) Formulate a linear intensity transformation g=T(f), that transforms f into g. (ii) Implement this intensity transformation as MATLAB function with the following specification: Function: TransformRange INPUT: - Input image f, - the gray level range [ll,h] of f - the gray level range [l,h] of output image g INPUT: - Output image g (iii) Test the function it on the given image (contrastEnhancment.png) so that the range of its values is in the range [ 0255 25. Show the image before and after transformation. Task 2 [5+15 Marks] Read an image f and perform the following operations: 1. Apply log transform on the input image f, and display the image before and after the transform. 2. First apply the function TransformRange (Task 1) on the input image f and transform its range to [01], then apply log transform and again apply the function TransformRange (Task 1) to transform the range of the image to [ 0255 ]. Display the image before and after the transform. 3. Compare the results of step 1 and 2 Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started