histogram function on red pixel