Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6660489
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T02:09:42+00:00 2026-05-26T02:09:42+00:00

I have two grey level images and I am looking for a proper way

  • 0

I have two grey level images and I am looking for a “proper” way to show the difference image.

The difference image should be a color image and it should show negative, zero and positive values.

Currently I am using a color map that shows negative values as blue, positive value as yellow and zero value as grey (see for example “A color map to show differences between images” http://www.cb.uu.se/~cris/blog/index.php/archives/56).

The minimum value found in the difference image is mapped to RGB=(0, 0, 1) and the maximum value found in the difference image is mapped to RGB=(0.9, 0.9, 0), the mapping is linear.

Is there any reference in the literature (academic papers, books…) to such a map?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T02:09:42+00:00Added an answer on May 26, 2026 at 2:09 am

    For a reference, see the (archived) page that helped push these colormaps; references are at the bottom of the page.

    If you want to build such a colormap, i.e. one that is linear in saturation (as opposed to e.g. hue), you need HSL2RGB from the File Exchange, and then you can construct a colormap like this:

    cLength = 64; %# length of colormap
    hue = [ones(floor(cLength/2),1)*0.66; ones(ceil(cLength/2),1)*0.16];
    sat = [linspace(1,0,floor(cLength/2))';linspace(0,1,ceil(cLength/2))'];
    lum = ones(cLength,1)*0.50;
    
    cmap = hsl2rgb([hue,sat,lum]);
    
    %# apply colormap
    colormap(cmap)
    

    For your visualization, if the most negative and the most positive difference are not the same, use CAXIS to ensure that the color grey maps exactly to zero.

    maxAbsDiff = max(abs(differenceImage(:)));
    caxis([-maxAbsDiff,maxAbsDiff])
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two images they actually do not overlap but I also can't have
I have two questions: 1) how do I change the color of the seek
here is the code http://jsfiddle.net/77NBM/12/ two grey squeares (float 1 and float 2) have
Have two folders with approx. 150 java property files. In a shell script, how
Have two actionsheet buttons and one modalviewcontroller on mainviewcontroller in application. Now for two
I have two tables: Users and Profiles. A user may have a profile and
I have two methods that draw a rotated rectangle on the screen. RenderMethod1 renders
I have two sets of vertexes used as a line strip: Vertexes1 Vertexes2 It's
I have two classes that extend the activity class. Each class has it's own
I have two strings both with value null . But when I am comparing

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.