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
 Image color issue with DICOM format

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
schiva Posted - Apr 08 2014 : 18:47:54
I want to change image file format to DICOM.
So, I made simple function.
But there were problem.
Image quality was changed when i convert image file format.
Source Bitmap image was ok. But DICOM image was not good.
(-- I attaced Bitmap file and DICOM file.
-- I used ImageEn_5.0.6B_22451_Setup.exe )

[ my simple function ]
------------------------------
procedure BitmapToDicom(srcBMP, targetDICOM:String);
var
  imgEn: TImageEnView;
begin
  imgEn := TImageEnView.Create(nil);
  try
    imgEn.IO.LoadFromFile(srcBMP);
    imgEn.IO.Params.DICOM_Compression := iedcUncompressed_Implicit;
    imgEn.IO.Params.DICOM_JPEGQuality := 100;
    imgEn.IO.SaveToFileDICOM(targetDICOM);
  finally
    FreeAndNil(imgEn);
  end;
end;





Download Attachment: 201448184625_Image.zip
3   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Apr 15 2014 : 14:29:19
Hi

In our tests it works fine if you specify the correct compression:

------------------------------
procedure BitmapToDicom(srcBMP, targetDICOM:String);
var
  imgEn: TImageEnView;
begin
  imgEn := TImageEnView.Create(nil);
  try
    imgEn.IO.LoadFromFile(srcBMP);
    imgEn.IO.Params.DICOM_Compression := iedcJPEG;
    imgEn.IO.Params.DICOM_JPEGQuality := 100;
    imgEn.IO.SaveToFileDICOM(targetDICOM);
  finally
    FreeAndNil(imgEn);
  end;
end;


Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
schiva Posted - Apr 10 2014 : 02:07:26
I alreay tried. But there was same "color change issue".
xequte Posted - Apr 08 2014 : 23:58:36
Hi

As you are setting DICOM_JPEGQuality did you try using using one of the JPEG formats (such as iedcJPEG) for DICOM_Compression?



Nigel
Xequte Software
www.xequte.com
nigel@xequte.com