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
 Negative function and DICOM files with a RescaleSlope <> 1

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
yeohray2 Posted - Nov 02 2021 : 03:43:27
How can I use the Proc.Negative function to correctly invert the grayscale values for a DICOM image that has a RescaleSlope value of <> 1, and where DICOM_Range is iedrSetBlackWhite?

I'm attaching a sample project together with a sample DICOM file. The first TImageEnView control loads the image with the defaults, the second TImageEnView sets DICOM_Range to iedrSetBlackWhite.

When I call the Proc.Negative function, the first TImageEnView control inverts the colors correctly, but the second TImageEnView displays a flat white image.

Is there some other setting that needs to be set in this case?

Thanks in advance.

Ray

attach/yeohray2/202111234219_TestNegative.zip
146.82 KB
4   L A T E S T    R E P L I E S    (Newest First)
yeohray2 Posted - Nov 07 2021 : 19:58:01
Hi Nigel, that works, thanks.

Ray
xequte Posted - Nov 03 2021 : 18:28:49
Hi

If you email me, we have an update with an "Inverted" color palette.

Nigel
Xequte Software
www.imageen.com
yeohray2 Posted - Nov 03 2021 : 03:59:56
Hi, thanks for the suggestion.

That option works, but it isn't feasible because we need to be able to identify each pixel's original HU value. Is using a color map feasible to invert the values?

Thank you.
xequte Posted - Nov 02 2021 : 22:21:30
Hi Ray

I'm out of the office today, but you should be able to call StretchValues before Negative:

https://www.imageen.com/help/TIEBitmap.StretchValues.html

e.g.

ImageEnView1.IEBitmap.StretchValues(); // Apply B+W values
ImageEnView1.Proc.Negative();

Nigel
Xequte Software
www.imageen.com