code: public static void bufferRgbToMsU8( byte []input , Planar<GrayU8> output ) {
  		GrayU8 band0 = output.getBand(0);
  		GrayU8 band1 = output.getBand(1);
  		GrayU8 band2 = output.getBand(2);
  
  		int indexIn = 0;
  		for( int y = 0; y < output.height; y++ ) {
  			int indexOut = output.startIndex + y*output.stride;
  			for( int x = 0; x < output.width; x++ , indexOut++ ) {
  				band0.data[indexOut] = input[indexIn++];
  				band1.data[indexOut] = input[indexIn++];
  				band2.data[indexOut] = input[indexIn++];
  			}
  		}
  	}
docs: Converts byte array that contains RGB data into a 3-channel Planar image
  @param input Input array
  @param output Output depth image