Error saving Tiff with 4 channels with HAVE_TIFF (Bug #2401)
Description
there is a bug in
1bool TiffEncoder::writeLibTiff( const Mat& img, const vector<int>& /*params*/)
2{
3...
4...
5switch(channels)
6{
7...
8 case 4:
9 {
10 ...
11 break; // <== fix, this line in missing in original code
12 }
13...
14}
so when HAVE_TIFF enabled you can't save 4 channel tiff's :)
Associated revisions
Merge pull request #2401 from akarsakov:fix_elem_size
History
Updated by Marina Kolpakova over 12 years ago
- Category set to highgui-images
- Status changed from Open to Done
- Assignee set to Marina Kolpakova
- Description changed from there is a bug in bool TiffEncoder::writeLibTiff( const Mat& img, const ... to there is a bug in <pre><code class="cpp"> bool TiffEnco... More
- Target version set to 2.4.3