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
 Crop multipage dicom. How to save?

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
Camphausen Posted - Jun 12 2014 : 05:14:29
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

1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 13 2014 : 13:36:33
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