Home > other >  Small white help Matlab image brightness improvement issues
Small white help Matlab image brightness improvement issues

Time:11-13

When doing exercises of matlab encountered a difficulty, turn the site didn't find related solutions, so we have to ask everybody to help!

Subject requirements, write a function by adding a constant c on each pixel values to adjust the overall brightness of the image,

The function of Lut=brightnessLUT (c)

Explanation function is as follows:


Pseudo code:
If the input value & lt; - c
The output value=https://bbs.csdn.net/topics/0
Else if the input value & gt; 255 - c
The output value=https://bbs.csdn.net/topics/255
The else
The output value=https://bbs.csdn.net/topics/input value + c


There are two questions, the first is that the teacher provides a gray image, should be a two dimensional array of 256 * 256, why Lut is an array containing 256? The second problem is underlined portion, said the index of the element input pixel values + 1 what's the meaning of this sentence?

I according to the understanding of their written code below


Then system error


The questions provided in the picture







  • Related