# Removing the 'red' artifact from my JPEG

I have a JPEG that originally came from a IP Camera. I have converted the JPEG to a bytes and have uploaded it to my server. Upon receiving it on my server I save it to disk.

When I view the image it looks 'grainy' and 'reddish'.

When I perform a contrast stretch I get this:

When I perform a Hist-Equalization I get this:

N.B. I have also tried a filter just on the Red Channel:

Image<Bgr, byte> CurrentFrame = new Image<Bgr, byte>((Bitmap)picOriginal.Image.Clone());
CvInvoke.cvSmooth(CurrentFrame[2], CurrentFrame[2], SMOOTH_TYPE.CV_GAUSSIAN, 3, 3, 1.5, 0);


Is there another approach so I could make the image look better, 'balanced', if that makes sense?

• Your last filtering will just smear the red channel over a larger area, which is probably counter-productive. Did you ever find a resolution? – Peter K. Jun 29 '16 at 12:18
• @PeterK. hi i did not. i had to increase the number of lines to get a better copy – Andrew Simpson Jun 29 '16 at 12:59
• I can't remember the name of this phenomenon but it was quite common with low quality camera. As pointed out by @Loufylouf white balance is a good solution try! Especially the pink-green slider for hue/saturation (move it toward green direction). – Louis Lac Jul 20 '18 at 12:27