Error saving Tiff with 4 channels with HAVE_TIFF (Bug #2401)


Added by Bohdan Marchuk over 12 years ago. Updated over 12 years ago.


Status:Done Start date:2012-10-01
Priority:Normal Due date:
Assignee:Marina Kolpakova % Done:

0%

Category:highgui-images
Target version:2.4.3
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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

Revision 52a339cb
Added by Andrey Pavlenko about 11 years ago

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

Also available in: Atom PDF