razvanmarinescu / brain-coloring

BrainPainter - Brain Visualisation Software
59 stars 18 forks source link

Color map for scaled/sckewed values #28

Open pandyasneha opened 1 year ago

pandyasneha commented 1 year ago

Dear team,

Thank you for this wonderful software! We are using this software to map pathology that are scaled from 0-1 or non-scaled values which are heavily skewed. Our values are heavily skewed in the range of 3.5-5, hence no matter what color we choose it ends up being a very subtle shade between last two colors in the range of pathology [0-5]. Same thing happens if I scale these values to 0-1. Is there a way I can show a scaled distribution of pathology values with hot color map or any other map that can show clear distinction of color on the glass brain? As in if I want to map scaled values that are in the range of 0-1 with say hot colormap (black -> red -> orange -> yellow), is it possible to do that? When I tried doing this, values were mapped to black and/or red discarding further interpolation from red to yellow.

Thank you, Sneha

razvanmarinescu commented 1 year ago

Glad it was useful Sneha! I don't think I understood the second part of the question, but for the first part, if you have skewed data, you can perhaps simply use our source code and apply a transformation that removes the skewness (for example log-transform of the biomarkers, or any other function that makes sense). Then you simply need to create a log-transform of the color legend in something like photoshop or in LaTeX.

pandyasneha commented 1 year ago

Thank you for the response, let me try that out.