I noticed that there's an example that uses GDAL for reading here https://github.com/Itseez/opencv/blob/master/samples/cpp/tutorial_code/HighGUI/GDAL_IO/gdal-image.cpp , which is very cool, but what do you do with a 50 channels Mat variable, after you're done processing it?