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
 Setting Min and Max of WhiteValue and BlackValue

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
jwest Posted - Jun 03 2016 : 07:53:43
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
1   L A T E S T    R E P L I E S    (Newest First)
xequte Posted - Jun 06 2016 : 20:33:49
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