octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #48468] imfinfo: image BitDepth value not comp


From: Francesco Morsillo
Subject: [Octave-bug-tracker] [bug #48468] imfinfo: image BitDepth value not compatible with MATLAB
Date: Thu, 14 Jul 2016 07:50:25 +0000 (UTC)
User-agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/51.0.2704.103 Safari/537.36

Follow-up Comment #5, bug #48468 (project octave):

I could not agree more: MATLAB is mixing bit depth and number of channels. The
alpha channel is added as a optional field 'Transparency' of the imfinfo
struct in case of images that can have it (i.e. PNG), so it is not counted in
the BitDepth.

[Informative]: my 'problem' is not a real problem. Basically I got stuck with
some legacy code written by somebody else and in this code there was a bit
shifting for images to have all values in the MSBs of the 16 bits of the
pixel. In order to do this shift, the code looks at the BitDepth of imfinfo
and divides it by 3: doing this in Octave basically makes the code think that
the image bit depth is 2 and unexpected values come out.
That part would probably be removed, so it shall not have impacts for me.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?48468>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]