ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 How to access 16 bits values from TIFF ?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jcf

France
14 Posts

Posted - Nov 02 2013 :  10:11:47  Show Profile  Reply
Hi,
i'm working with TIFF 16 bits or 32 bits files, but when i want to access and display all the values of grey in a table, i get the values on 8 bits range (from histogram for example).
How can i have access to the original 16 bits values to display all of them ? (the other solution would be to display a real 16 bits histogram...not sure it's possible).
Thanks,
JC

fab

1310 Posts

Posted - Nov 27 2013 :  01:22:51  Show Profile  Reply
Hi,
to load a 16 bit image without converting it to 8 bit write:

ImageEnView1.LegacyBitmap := false;
ImageEnView1.IO.NativePixelFormat := true;
ImageEnView1.IO.LoadFromFile('....filename....');

To read a 16 bit gray scale value use:

value := ImageEnView1.IEBitmap.Pixels_ie16g[col, row];
Go to Top of Page

jcf

France
14 Posts

Posted - Feb 09 2014 :  18:54:49  Show Profile  Reply
thank you.
What about 16 bits color (3x16=48 bits color files) values ?
Do i need to convert my 48 bits color pic to 16 bits gray to display the value ?
thanks.
JC
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: