Question: write a function that calculate the gamma correction for a gray image. Builds a table(array) of integer gamma values indexed by integer gray values for
write a function that calculate the gamma correction for a gray image. Builds a table(array) of integer gamma values indexed by integer gray values for a particular exponent to avoid recomputing the gamma function for each pixel. This is called a lookup table. Given a particular gray image and gamma exponent, it creates and sets the lookup table. Do not assume that the domain, x, of the gamma function is [0,255]. You should use the domain of values in the particular image. However, you should assume the range is [0,255].
public int[] GammaTable ( int [][] image, double exponent ) { } Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
