Brightness Contrast Control

Hi,
Is there any module which can control brightness or contrast of a frame. Or any alternative for same

Can you elaborate with some more details so we can get this question into the write section of the forum?

I need to control brightness and contrast of the image using nppi library. Is there any function inside nppi library which will change pixel value of image inorder to control brightness and contrast.