Question: [8 points] You learned different transformation functions that map input intensities r to output intensities s. The example below shows the mapping of a narrow

 [8 points] You learned different transformation functions that map input intensities

[8 points] You learned different transformation functions that map input intensities r to output intensities s. The example below shows the mapping of a narrow range of dark pixels [r1,r2] to a much wider range of intensities, improving the contrast of the input pixels Write a Matlab function intensityStretch that changes the contrast of a given image based the linear mapping function shown below 3. 255 r1 r2 255 Input intensity level, r Your function should takes five arguments: the input image, two values for the input range of intensities [r1,r2], and two values for the output range [s1,s2]. The function must check the input intensity values and ensure that r1 2 min intensity of I r2s max intensity of I s120 S2

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!