How to customize a colour map so that all values of 0 are equal to gray
14 次查看(过去 30 天)
显示 更早的评论
Dear Matlab Community,
I am working with a nifti (.nii) image. I would like to plot the values I have using the 'jet' colormap.
With for example the 'jet' colormap, all values of 0 would have a green color. However, I would like to keep the jet colormap, but alter it so that all values of 0 instead show a gray color.
Can anyone please help as to how I can do this?
Thank you,
P.
0 个评论
回答(1 个)
Swetha Polemoni
2021-3-29
Hi
It is my understanding that you want to customize the colormap. You may find the following documentation helpful.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Red 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!