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
 Setting Min and Max of WhiteValue and BlackValue
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

jwest

Brazil
67 Posts

Posted - Jun 03 2016 :  07:53:43  Show Profile  Reply
Working with dicom Images, I have a two trackbars: TrackBarBlack and TrackBarWhite.

I need to set these trackbars the min and max values to control Blackvalue and WhiteValue of a dicom image.

The first track:TrackBarBlack control the BlackValue and the second, TrackBarWhite the WhiteValue.

How could I check the pixel format of a dicom image and set these values at runtime?
pseudo code:

if DicomPixelFormat=xx then begin
 TrackBarBlack.Min=???
 TrackBarBlack.Max=???

 TrackBarWhite.Min=???
 TrackBarWhite.Max=???
end else if if DicomPixelFormat=yy then begin
 TrackBarBlack.Min=???
 TrackBarBlack.Max=???

 TrackBarWhite.Min=???
 TrackBarWhite.Max=???
end;

Luiz

xequte

38943 Posts

Posted - Jun 06 2016 :  20:33:49  Show Profile  Reply
Hi Luiz

Please have a look at iedicom and see how iedrSetBlackWhite is handled. If you copy the code from the *_Set() methods it will give you default BlackValues and WhiteValues

Nigel
Xequte Software
www.xequte.com
nigel@xequte.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: