|
Is the image normalised in the same way as I?
Often you have an image varying between 0 and 255 (say, for an 8 bit grayscale) and actual data varying between 0 and 1. If that were the case, all your contours could show up the same colour when the colormap is applied.
Just a guess!
Tom
"K. P." <kapieren@gmail.com> wrote in message <hdudeb$rnu$1@fred.mathworks.com>...
> > Are img and I the same size?
> > Are you sure img is not an rgb image? If so, can't have a colormap on
> > the image, but I'm not sure if you can have a colormap for contour
> > lines over an rgb image - I'd have to look it up and try it.
> > Did you look into the colormap() function?
> > Maybe image() take a colormap as an argument.
>
> Yes, img ang matrix I are the same size.
> I tried image RGB and image BW - without effects
> And yes, I used colormap function:
>
> image(img);
> hold on;
> contourf(I);
> colormap(hot);
>
> Also without effects :/
|