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
 Saving modified DICOM file

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
klinikaxp Posted - Sep 24 2013 : 16:45:34
I use TImageVect to analyze and modify Dicom files.
For example I change the brightness:

ImageVect.IEBitmap.ChannelOffset[0] := 200; // red
ImageVect.IEBitmap.ChannelOffset[1] := 200; // green
ImageVect.IEBitmap.ChannelOffset[2] := 200; // blue
ImageVect.Update;


But the file saved is not changed - has the same brightness like the original. How to apply changes to destination file?


I save Dicom file this way:

SaveImageEnDialog1.AutoSetFilterFileType := ioDicom;
SaveImageEnDialog1.Filename := MyFileName;
if SaveImageEnDialog1.Execute then
begin
ImageVect.IO.SaveToFileDICOM (SaveImageEnDialog1.Filename);
end;
1   L A T E S T    R E P L I E S    (Newest First)
fab Posted - Oct 03 2013 : 02:58:56
ChannelOffset is a "display only" property. It doesn't actually change the bitmap.
To make ChannelOffset changes permanent you should call FixChannelOffset (maybe just before SaveToFileXXX).

ImageEnVect.IEBitmap.FixChannelOffset();