title: Need help combining two 3 channel images into 6 channel image Python
body: <p>I am trying to combine two different RGB images into a single 6 channel image (Tiff is best) using nothing but Python.</p>
  
  <p>What I have is an RGB image taken from a normal camera as well as another RGB image that is a normal map based on a SfM reconstruction. The images have identical dimensions and I simply need to overlay one image on the other so that I can run an image classification based on the combined channel information.</p>
  
  <p>I've been looking into using openCV for this, but I'm getting hung up on the documentation. I'm a geologist, not a programmer so my math skills and programming knowledge is mediocre at best.</p>
  
  <p>I've been doing some digging and what I've tried so far is using OpenCV to create an array for each image, then using numpy to concatenate the resulting matrices and using PIL to put them together into an image. Trouble is the image shows both images side by side or on top of one-another rather than as a 6 channel image.</p>
  
  <p>I don't think PIL can do what I need it to do, but I'm not sure how to use the openCV mixChannels function or how to even create a MAT in Python as the Mat::create documentation is entirely in C++.</p>
  
  <p><img src="https://i.stack.imgur.com/dCKvN.jpg" alt="RGB Image"></p>
  
  <p><img src="https://i.stack.imgur.com/XxsZg.jpg" alt="Normals Image"></p>
  
  <p>I've come across another thread on this site, but they weren't really answered either as far as I can tell:</p>
  
  <p><a href="https://stackoverflow.com/questions/10575699/combine-two-rgb-images-to-a-6-channel-image-opencv">See here</a></p>