Question: Improve the Luminosity As you probably noticed, the image you obtained after demosaicing is quite dark. Apply a gamma correction I suggest gamma =

Improve the Luminosity
As you probably noticed, the image you obtained after demosaicing is quite dark. Apply a
gamma correction I suggest \gamma =0.3, and not to normalize using np.min and np.max but
np.percentile with values of 0.01 and 99.99.
Evaluate at least one other curve than y = x\gamma .
Hint: use the percentiles to normalize data in [0,1] as you would normally do with min and
max (set negative values to 0, and values greater than 1 to 1), apply the gamma correction,
and invert the transform to get back the the previous range of values.
Hint: here is how to use the percentile approach:
a = np.percentile(data,0.01)
b = np.percentile(data,99.99)
data =(data - a)/(b-a)
data[data<0]=0
data[data>1]=1
provide python code

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!