I have a bespoke Image Capture & processing flow, wherein I do the following operations:-
Capture Raw data-->De-Bayer(Get RGB)-->Color Balance-->RGB-to-YCbCr-->Image sharpening-->Denoise filtering-->YCbCr-to-RGB-->Gamma correction(Gamma encoding)-->Store the file as BMP.
But now as some new requirement, I need to store the final output file in YUV/YCbCr format. So the new flow would be:
Capture Raw data-->De-Bayer(Get RGB)-->Color processing-->RGB-to-YCbCr-->Image sharpening-->Denoise filtering
My questions is now where should I apply the Gamma correction, since there is no conversion back to RGB space after the image sharpening and denoise filtering in YCbCr space?
Will it yield same/similar image quality when viewed, if I apply gamma correction in RGB space after Color balance, before it is converted to YCbCr space and thus before Image sharpening and denoising?
Any pointers appreciated.
thank you.
-AD