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
 Crop multipage dicom. How to save?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Camphausen

Australia
6 Posts

Posted - Jun 12 2014 :  05:14:29  Show Profile  Reply
Hi,
I make a selection and crop all images to that selection.

 R := ImageEnVect1.SelectedRect;
 with ImageEnMView1 do
   for i := 0 to ImageCount-1 do begin
     bmp := GetTIEBitmap(i);
     ImageEnProc1.AttachedIEBitmap:=bmp;
     ImageEnProc1.Crop(R.x,R.y,R.x + R.Width,R.y + R.Height);
     ReleaseBitmap(i);
     UpdateImage(i);
   end;


When I try to save to a new Dicom file
ImageEnMView1.MIO.SaveToFileDICOM('I:\ckc_data\cropped');

I get an error message
EIEEException 'DICOM saving: different images'

Nevertheless, there is actually a file written to the disk but with only one image.

Please help.
Thanks
Kind regards
Christoph

xequte

38517 Posts

Posted - Jun 13 2014 :  13:36:33  Show Profile  Reply
Hi Christoph

ImageEnVect does not support multiple frame images, so when saving it only outputs the active frame. Unfortunately our work to create helper functions for DICOM is ongoing, so you will need to use a TImageEnMView to load the DICOM, edit the relevant frame and then save it.



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: