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
 DICOM Conversion to GIF / TGA Errors & Rendering

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
spurgeon Posted - Mar 24 2016 : 10:09:45
I have several test DICOM files and am trying to convert to GIF or TGA. If I try to convert to GIF, I get access violation / privileged instruction errors. If I convert to TGA, the file is small, almost an empty file with no TGA image. Can you look at this? Attached are two sample DICOM images that exhibit this behavior:

CT-MONO2-16-ankle.dcm
IM-0001-0001.dcm

Also, I included a third DICOM brain image that doesn't render correctly (brain_001.dcm) in the attached zip file. I have several other samples that have the same issue where they don't render correctly. I can open a separate thread for this one if you want.

attach/spurgeon/201632410827_dicom_samples.zip
197.37 KB
7   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Mar 29 2016 : 19:29:54
Hi

We have a fix for this. You can email me for the updated source.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
spurgeon Posted - Mar 29 2016 : 09:27:01
Thanks, will do for now. Let me know what you find.
xequte Posted - Mar 28 2016 : 16:39:35
Thanks, I see the issue. We will investigate.

In the meantime, you can work around it for now by downscaling the image to 256 colors.

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
spurgeon Posted - Mar 28 2016 : 08:33:00
I don't see the issue in the Dicom demo either. Here are two simple code samples where I get an access violation with CT-MONO2-16-ankle.dcm:

ImageEnVect1.IO.LoadFromFile('c:\test\image\CT-MONO2-16-ankle.dcm');
ImageEnVect1.IO.SaveToFile('c:\test.gif');

And this:

procedure TForm1.FormCreate(Sender: TObject);
var
  io: TImageEnIO;
begin
  io := TImageEnIO.Create(nil);
  try
    io.LoadFromFile('c:\test\image\CT-MONO2-16-ankle.dcm');
    io.SaveToFileGIF('c:\test.gif');
  finally
    io.Free;
  end;
end;

First chance exception at $75699617. Exception class EAccessViolation with message 'Access violation at address 005EE888 in module 'Project1.exe'. Write of address 00130001'. Process Project1.exe (1396)
xequte Posted - Mar 27 2016 : 21:52:42
I can't reproduce that (using the Dicom demo). What code are you using?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
spurgeon Posted - Mar 24 2016 : 14:18:29
Yes, sorry should have mentioned that--6.2.2. Also, saving to JPEG, PNG, etc work fine, just issues when saving GIF and TGA.
xequte Posted - Mar 24 2016 : 13:57:12
I'll investigate. Are you using v6.2.2?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com