Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
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).