WW/WL for each image based on dicom

832 views
Skip to first unread message

Richard Smith

unread,
Jul 10, 2016, 6:30:12 PM7/10/16
to cornerstone platform
Hello All,

I need some assistance in setting ww/wl of each image when mouse wheel moves based on dicom provided values  (0028,1050) WL / (0028,1051) WW.  I am also using reference lines via metaDataProvider.  Could someone please help me on how to implement such functionality?

Many thanks in advance!
Regards,
Ric

Chris Hafey

unread,
Jul 12, 2016, 4:26:24 PM7/12/16
to cornerstone platform
See my reply to the ww/wc issue on this thread:


Also search this forum for "metaDataProvider" for various tips on how to implement it

Chris

Richard Smith

unread,
Jul 13, 2016, 2:28:05 PM7/13/16
to cornerstone platform
Thank you Chris for getting back to me.

I have a question - what are the advantages/disadvantages using ww/wl based on dicom for each image?  The reason I'm asking is our user are saying the default images on the viewer are either too bright or not set properly.  They are saying if we use values for each image based on dicom file then it would be better.

I'm using reference lines as well as custom ww/wl settings for soft-tissue, lung, bone etc. If I use ww/wl based on dicom values would that create any issues or make things complicated :) ?  

I'm also bit concern on the performance if I set ww/wl for each image say for MR study.

Any thougths?

Regards,
Rick

Chris Hafey

unread,
Jul 13, 2016, 2:54:34 PM7/13/16
to cornerstone platform
You should use the WW/WC values in the DICOM by default as they should display the image properly to the user.  The only exception to this is for CT (in which case you can use presets).  The performance implications of setting the ww/wc on each image are neglibible.
Chris

Richard Smith

unread,
Jul 13, 2016, 4:43:24 PM7/13/16
to cornerstone platform
Thank you for getting back so quickly Chris!

One question - should I setup ww/wc in onNewImage function since it is been called on CornerstoneNewImage?  Kindly let me know if you think there would be better place do set ww/wc other than onNewImage ?

Many thanks,
Rick

Chris Hafey

unread,
Jul 13, 2016, 11:18:31 PM7/13/16
to cornerstone platform
Correct, set the ww/wc via setViewport() in your CornerstoneNewImage event handler.
Reply all
Reply to author
Forward
0 new messages