Skip navigation
y.kulyk
Currently Being Moderated

16 - 32 bit image data conversion

Mar 12, 2013 12:17 PM

Tags: #rgb #c++ #32 #filter #bit #16 #indata

Hi all

 

Could someone pelase explain me how I can convert 16 - 32 bit RGB image from FilterRecord::inData to 8 bit RGB, and than how I can convert back 8 bit to 16 - 32 bit RGB image to store it in FilterRecord::outData. Maybe there exist some information in documentation or in some sample? I'm asking because I didn't find it.

 

Thanks for help!

Best Regard

Yaroslav

 
Replies
  • Currently Being Moderated
    Mar 13, 2013 1:14 AM   in reply to y.kulyk

    A simple bit shift will convert the data if you only want a linear conversion. Are you sure this is what you want though as you will loose a lot of image data converting to and then from 8 bits?

     

    James

     
    |
    Mark as:
  • Currently Being Moderated
    Mar 23, 2013 2:03 PM   in reply to y.kulyk

    You might want to read the documentation.

     

    32 bit/channel is floating point values.

     

    16 bit/channel ranges 0..32768.

     

    You don't want to do simple bit shifts.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points