Applying colormap on color images (like ultrasounds)#562
Applying colormap on color images (like ultrasounds)#562Bolkonski wants to merge 3 commits intocornerstonejs:masterfrom
Conversation
|
@Bolkonski Is it safe to ignore other colors than the Red channel? |
For RGBA images, it calculates the grayscale pixel value using the luminosity method.
@sen-trenser absolutely true! I was so fixated with image distortion that i forgot to actually convert to grayscale. There is another commit using Luminosity Method. I read #545 and got some ideas, altho I didn't understand why relative luminance. Maybe I am missing something. |
Hello

First of all, I wanna thank the Cornerstone creators and team in general. For 3 years I've been using this libraries in my work. The documentation and forums also helped me a lot.
There was only one issue I couldn't find an answer for. When applying colormaps to an image in color (mostly ultrasounds), the canvas shows a distorted image (see the attached picture).
Recently i made this update to de cornerstone.js file stored in my project assets's and fixed the problem for me.
This pull request is my first ever. I have read the contributor guidelines and hope i am not violating any rules.
Above all, i expect this to be useful.
Any feedback in my pull request will be apreciated.