depending on the input, either a matrix or an array
Arguments
image
matrix or 3-dimensional array where the third dimension is equal to 3
gamma
a positive value
Author
Lampros Mouselimis
Details
This function applies gamma correction to a matrix or to a 3-dimensional array where the third dimension is equal to 3. The gamma correction controls the overall brightness of an image.