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
 Saving modified DICOM file
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

klinikaxp

Poland
11 Posts

Posted - Sep 24 2013 :  16:45:34  Show Profile  Reply
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;

fab

1310 Posts

Posted - Oct 03 2013 :  02:58:56  Show Profile  Reply
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();
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: