Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » Draw, Display, Images, Bitmaps, Icons » Loading 16 bits per channel Tiff files
Loading 16 bits per channel Tiff files [message #30464] Sun, 02 January 2011 20:13 Go to next message
TimCoventry is currently offline  TimCoventry
Messages: 2
Registered: January 2011
Junior Member
Hi All,

Is there a way to load a 16 bits per colour channel Tiff file so that the full 16 bits can be accessed? Using
StreamRaster::LoadFileAny
loads the file but the returned Image is only 8 bits per colour channel.

Thank you.

Regards,
Tim
Re: Loading 16 bits per channel Tiff files [message #30466 is a reply to message #30464] Sun, 02 January 2011 23:42 Go to previous messageGo to next message
dolik.rce is currently offline  dolik.rce
Messages: 1789
Registered: August 2008
Location: Czech Republic
Ultimate Contributor

Hi Tim

It is a general property of libtiff that it returns 8bit samples. Also, the whole U++ interface uses 8bits per color, so it would be difficult to fit it in.

According to this mailing list however, you can access the 16bit values using other APIs such as TIFFReadScanline, TIFFReadEncodedStrip or TIFFReadTile. Those should be available in U++ in plugin/tif you will probably just have to include some additional header or declare the functions in your code. There are some relevant examples at http://www.libtiff.org/libtiff.html that look quite promising.

Best regards,
Honza

Re: Loading 16 bits per channel Tiff files [message #30474 is a reply to message #30466] Mon, 03 January 2011 20:05 Go to previous messageGo to next message
TimCoventry is currently offline  TimCoventry
Messages: 2
Registered: January 2011
Junior Member
Hi Honza,

Thanks for the quick response. I will look into the TIFFReadScanline and TIFFReadTile functions. The libtiff link looks quite usefull.

Regards,
Tim
Re: Loading 16 bits per channel Tiff files [message #32186 is a reply to message #30474] Fri, 29 April 2011 13:45 Go to previous message
tojocky is currently offline  tojocky
Messages: 607
Registered: April 2008
Location: UK
Contributor

TimCoventry wrote on Mon, 03 January 2011 21:05

Hi Honza,

Thanks for the quick response. I will look into the TIFFReadScanline and TIFFReadTile functions. The libtiff link looks quite usefull.

Regards,
Tim


Hello Tim,

Did you resolve with 16bit tif image?

Have you an example with U++?

Thank you in advance!
Previous Topic: Painter bug?
Next Topic: RGBA and ImageBuffer classes improve
Goto Forum:
  


Current Time: Fri Mar 29 01:05:34 CET 2024

Total time taken to generate the page: 0.02573 seconds