From: Kadi on
Hi

I am working on a similar project and am facing the same problem. I looked at the solution that you provided here but I didn't quite understand it. If you don't mind could you please explain it to me how this can be implemented in more detail.

Thanks
Kadi

Steve Irwin <steve.irwin(a)crochunter.com> wrote in message <U1nbe.1079$Zn.57916(a)news.optus.net.au>...
> David Shin wrote:
> > Sorry for the lack of clarification. You are exactly right. I need to
> > preserve the grayscale information of the overall image, i.e. keeping
> > the brain. On top of this brain image, I want to superimpose
> > temperature data of the tumor. Unlike the rest of the image pixels
> > whose value range from 0 to 4096, the intensity of pixels of the
> > tumor ranges only from 0 to 45, which translates to temperature value
> > in celsius. I want to translate these pixel values (0 to 40) in
> > color, perhaps using Matlab colormap JET. Therefore, the colorbar
> > next to the image would show 0 value (min) having blue color and 40
> > (max) having red. This is a nice way to show the temperature
> > distribution of the tumor while maintaining the actual image
> > surrounding it. I hope this helps.
>
> cool, i'm pretty sure i now know what you want. i don't have time today
> to give a full solution, but basically split the image into the bits you
> want color and grey, tweak the intensity limits, then use ind2rgb on
> each separately add the results.
> sorry i don't have time for than that at the moment. if i get time
> t'mora i'll look into it further if you don't get a more thorough solution.
>
> lata,
> steve