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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 32 bit float TIFF

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

T O P I C    R E V I E W
richardc Posted - Jul 20 2016 : 07:25:11
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

5   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jul 25 2016 : 17:28:59
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
richardc Posted - Jul 25 2016 : 11:48:32
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





w2m Posted - Jul 20 2016 : 10:53:34
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
richardc Posted - Jul 20 2016 : 10:22:07
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

w2m Posted - Jul 20 2016 : 09:55:00
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