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
 DICOM Conversion to GIF / TGA Errors & Rendering
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

spurgeon

54 Posts

Posted - Mar 24 2016 :  10:09:45  Show Profile  Reply
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

xequte

38944 Posts

Posted - Mar 24 2016 :  13:57:12  Show Profile  Reply
I'll investigate. Are you using v6.2.2?


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

spurgeon

54 Posts

Posted - Mar 24 2016 :  14:18:29  Show Profile  Reply
Yes, sorry should have mentioned that--6.2.2. Also, saving to JPEG, PNG, etc work fine, just issues when saving GIF and TGA.
Go to Top of Page

xequte

38944 Posts

Posted - Mar 27 2016 :  21:52:42  Show Profile  Reply
I can't reproduce that (using the Dicom demo). What code are you using?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page

spurgeon

54 Posts

Posted - Mar 28 2016 :  08:33:00  Show Profile  Reply
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)
Go to Top of Page

xequte

38944 Posts

Posted - Mar 28 2016 :  16:39:35  Show Profile  Reply
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
Go to Top of Page

spurgeon

54 Posts

Posted - Mar 29 2016 :  09:27:01  Show Profile  Reply
Thanks, will do for now. Let me know what you find.
Go to Top of Page

xequte

38944 Posts

Posted - Mar 29 2016 :  19:29:54  Show Profile  Reply
Hi

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

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: