From: The Dude on
I would like to adjust the Jet colormap such that the 0 value (or center) is white, while, all the other colors remain the same. Is there a simple way to do this?

Thank you in advance.
From: ImageAnalyst on
On Apr 30, 2:43 pm, "The Dude " <ebau...(a)gmail.com> wrote:
> I would like to adjust the Jet colormap such that the 0 value (or center) is white, while, all the other colors remain the same. Is there a simple way to do this?
>
> Thank you in advance.

-------------------------------------------------------
Dude, do it like this:

% Read in standard MATLAB grayscale demo image.
grayImage = imread('tire.tif');
imshow(grayImage, []);
title('Original Grayscale Image');
set(gcf, 'Position', get(0,'Screensize')); % Enlarge figure to full
screen.

myColorMap = jet; % Make a copy of jet.
% Assign white (all 1's) to black (the first row in myColorMap).
myColorMap(1, :) = [1 1 1];
colormap(myColorMap); % Apply the colormap
From: The Dude on
ImageAnalyst <imageanalyst(a)mailinator.com> wrote in message <cb922a14-99d0-4c5e-95de-5dd55de230e2(a)y36g2000yqm.googlegroups.com>...
> On Apr 30, 2:43 pm, "The Dude " <ebau...(a)gmail.com> wrote:
> > I would like to adjust the Jet colormap such that the 0 value (or center) is white, while, all the other colors remain the same. Is there a simple way to do this?
> >
> > Thank you in advance.
>
> -------------------------------------------------------
> Dude, do it like this:
>
> % Read in standard MATLAB grayscale demo image.
> grayImage = imread('tire.tif');
> imshow(grayImage, []);
> title('Original Grayscale Image');
> set(gcf, 'Position', get(0,'Screensize')); % Enlarge figure to full
> screen.
>
> myColorMap = jet; % Make a copy of jet.
> % Assign white (all 1's) to black (the first row in myColorMap).
> myColorMap(1, :) = [1 1 1];
> colormap(myColorMap); % Apply the colormap

Thanks!