i have a volume with voxel data value like 0.0001,0.001,0.02,0.1,1,the boss wants to map the voxel data value use log function like 0.0001 maps to log(0.0001),0.02 maps to log(0,02),and than color the volume using jet . the boss also wants to show voxel data in data probe module with the origin value like 0.0001 ,0.02,is is possible to implement such function using slicer script?
You can create a color node that assigns the desired colors to any voxel value. You can take colors from the “jet” color table (ColdToHotRainbow
in Slicer) and assign it to logarithmic values as shown in this example. They key is not to use a color table (that has colors defined at regular intervals in linear space), but a color transfer function (that can assign colors to arbitrary intensity values).
thank you lassoan , i use the code you mentioned,it succeed with sample volume like the effect below
but with sparse data , the same code is failed with the effect below
i have tried many ways to solved the problem but all failed . is there a way to color the data i linked below?