for planar rgb image, lay the channels out in the x axis, from left to right