I am tuning ISP(image signal processing) of one chip used in cameras. Gamma curve is used in the pipeline. I don't understand the reason. The CCM(Color correction matrix) will map images to sRGB color space. sRGB color space include gamma information. Why is gamma curve used?
A matrix is a linear transformation. Gamma (power curve) correction is non-linear. A matrix multiply cannot perform the same transformation as a gamma curve. Therefore you need both.
As for "why a gamma curve is needed at all," well that's more complicated. Charles Poynton's Gamma FAQ has this explanation:
The luminance generated by a physical device is generally not a linear function of the applied signal. A conventional CRT has a power-law response to voltage: luminance produced at the face of the display is approximately proportional to the applied voltage raised to the 2.5 power. The numerical value of the exponent of this power function is colloquially known as gamma. This nonlinearity must be compensated in order to achieve correct reproduction of luminance.
As mentioned above (What is lightness?), human vision has a nonuniform perceptual response to luminance. If luminance is to be coded into a small number of steps, say 256, then in order for the most effective perceptual use to be made of the available codes, the codes must be assigned to luminance levels according to the properties of perception.
...Through an amazing coincidence, vision's response to luminance is effectively the inverse of a CRT's nonlinearity.
(While we don't use CRTs much anymore, a lot of these standards were developed when we did.)