Ask Your Question

Revision history [back]

How do I Access Channels beyond the First 3 or 4 in an OpenEXR Image?

I'm using OpenCV for Android like this to try to load an EXR image:

String testImgPath = "/storage/sdcard0/test2.exr"; Mat mRgba = Highgui.imread(testImgPath, Highgui.CV_LOAD_IMAGE_ANYCOLOR|Highgui.CV_LOAD_IMAGE_ANYDEPTH);

Regardless of the combination of flags I use with imload, I never see a channel count greater than 3 (CV_32FC3), but I know for a fact my test image contains 9 channels. There are 3, 3-channel images embedded within it. How can I load these extra channels?

Thanks, Jason