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
 32 bit float TIFF
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

richardc

United Kingdom
12 Posts

Posted - Jul 20 2016 :  07:25:11  Show Profile  Reply
Hello,

I'm attempting to load a 32 bit floating point tiff. I see that there is a pixelformat for 32 bit float files, but when I load it ImageEn says it is a 24 bit colour image.

Is there anyway I can force it, or is it just not supported?

I should say that I can load this image into ImageJ which tells me that it is a 32 bit floating point image.

Thanks,

RIchard

w2m

USA
1990 Posts

Posted - Jul 20 2016 :  09:55:00  Show Profile  Reply
What do you mean by "ImageEn says"? How are you determining the bit depth?
Post the "32 bit floating point" image so I can look at it.

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

richardc

United Kingdom
12 Posts

Posted - Jul 20 2016 :  10:22:07  Show Profile  Reply
Hi Bill,

The image is here:

https://drive.google.com/file/d/0BwEpKreUwBJRSTFrbmpwZzRsYk0/view?usp=sharing

When I'm loading it into ImageEn I'm checking the PixelFormat of IEBitmap, which is ie24RGB. The bitcount, as you would expect, is 24.

Thanks,

RIchard

Go to Top of Page

w2m

USA
1990 Posts

Posted - Jul 20 2016 :  10:53:34  Show Profile  Reply
Instead of Pixelformat or BitCount use IO.Params:
iBitDepth := ImageEnView1.IO.Params.SamplesPerPixel *
          ImageEnView1.IO.Params.BitsPerSample;
if iBitDepth = 32 then
  StatusBar1.Panels[4].Text := 'Color: RGBA' +
  IntToStr(ImageEnView1.IO.Params.SamplesPerPixel *
  ImageEnView1.IO.Params.BitsPerSample) + '-bit'
else
  StatusBar1.Panels[4].Text := 'Color: RGB' +
    IntToStr(ImageEnView1.IO.Params.SamplesPerPixel *
    ImageEnView1.IO.Params.BitsPerSample) + '-bit';

Bill Miller
Adirondack Software & Graphics
Email: w2m@hughes.net
EBook: http://www.imageen.com/ebook/
Custom Commercial ImageEn Development
Go to Top of Page

richardc

United Kingdom
12 Posts

Posted - Jul 25 2016 :  11:48:32  Show Profile  Reply
Thanks Bill.

OK, that does report 32 bit - but ImageEnView1.IEBitmap.Pixels_ie32f is just full of zeros and the image is black. The image appears to be the right height and width though.

Any ideas?

Thanks,

Richard





Go to Top of Page

xequte

38613 Posts

Posted - Jul 25 2016 :  17:28:59  Show Profile  Reply
Hi Richard

What is your setting for ImageEnView1.IO.NativePixelFormat?

http://www.imageen.com/help/TImageEnIO.NativePixelFormat.html

You should be able to load it as follows:

ImageEnView1.IO.NativePixelFormat := True;
ImageEnView1.IO.LoadFromFile('C:\0062.tif');


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: