Infogosoft / jsdicom

dicom library and viewer in javascript
95 stars 38 forks source link

optimize GLSL shaders for grayscale images #16

Closed png85 closed 11 years ago

png85 commented 11 years ago

this small commit changes the upper/lower VOI window bound calculations to be more optimization friendly so most GLSL compilers can turn them into a single-cycle multiply-and-add operation.

daniel-lundin commented 11 years ago

Interesting and very much appreciated. Thanks