Skip to content

Conversation

@maurerle
Copy link

starting an ODM job with stacked images (tif images containing all 6 channels of a multispectral camera) fails currently as the libraries used to get_image_size do not allow usage of more than 4 channels.

PIL does silently fail for some reason, while the fallback cv2 fails with:

/code/SuperBuild/src/opencv/modules/imgcodecs/src/grfmt_tiff.cpp:148: error: (-215:Assertion failed) channels <= 4 in function 'normalizeChannelsNumber'

Rasterio does a good job opening the TIF files without actually reading them.

With this fix, we are one step further processing multi-channel images, but then run into the error described in #1979

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant