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](https://dsd5zvtm8ll6.cloudfront.net/si.experts.images/questions/2024/09/66f2c9d8c306e_41666f2c9d823bd8.jpg)
[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
Get step-by-step solutions from verified subject matter experts
