Permalink
Browse files

Fix how ImageResourceView detects when it's asked for scalar-valued

pixels when deciding how to handle multi-channel source data.
  • Loading branch information...
1 parent 0d25b0e commit 956bd24d33987fb1b5c31b04f8a227df8014d4ba Matthew Hancher committed Feb 25, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vw/Image/ImageResourceView.h
@@ -104,7 +104,7 @@ namespace vw {
// On the other hand, the user has requested a scalar pixel type
// but the file has a multi-channel pixel type, then we force a
// multi-plane interpretation.
- if (PixelNumChannels<PixelT>::value == 1 && m_rsrc->channels() >= 1 && m_rsrc->planes() == 1) {
+ if (IsScalar<PixelT>::value && m_rsrc->channels() >= 1 && m_rsrc->planes() == 1) {
m_planes = m_rsrc->channels();
}
}

0 comments on commit 956bd24

Please sign in to comment.