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
 DICOM autoequalization after load
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

gorchi

Slovenia
6 Posts

Posted - Mar 23 2012 :  03:21:41  Show Profile  Reply
Hi,
one question regarding loading DICOM files. Is there a setting that would enable some equalization (auto brightness or something like this) so that after loading some DICOM's the image would not look too dark or to bright? Comparing the same Dicom in IrfanView, the image there looks much much better than in the demo (Dicom viewer) just downloaded from Your site...

Regards,
Goran

fab

1310 Posts

Posted - Mar 23 2012 :  03:37:42  Show Profile  Reply
Hi,
you should call AutoCalcBWValues() (which automatically adjusts TIEBitmap.WhiteValue and BlackValue), and StretchValues() to make then changes permanent. Example:
ImageEnView1.IEBitmap.AutoCalcBWValues();
ImageEnView1.IEBitmap.StretchValues();
ImageEnView1.Update();
Go to Top of Page

gorchi

Slovenia
6 Posts

Posted - Mar 23 2012 :  03:44:20  Show Profile  Reply
Thank You Fabrizio! StretchValues is new to ImageEn 4?
Go to Top of Page

fab

1310 Posts

Posted - Mar 23 2012 :  11:47:04  Show Profile  Reply
Yes, StretchValues exists since version 4.
Anyway you can leave only AutoCalcBWValues(), but remember to set ZoomFilter=rfNone. In this case the pixel stretching is only "visual" (it is not a changement of the raw pixels).
Go to Top of Page

gorchi

Slovenia
6 Posts

Posted - Mar 26 2012 :  03:48:54  Show Profile  Reply
Thank You Fabrizio! I sent Nigel one such "dark DICOM" in e-mail in september 2011 and since I can't afford testing the new IE I've tested these dicom's using demo DICOM viewer. Unfortunately there is no difference between my current version 3.11 and 4.1 :( Also the idea in 3.11 does not work either. I'll try to find some computer where I can try Your suggestion in the next days.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: