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

  • SEARCH
  • Home
  • 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 8678047
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T20:36:44+00:00 2026-06-12T20:36:44+00:00

I have observed that whenever I use the command imagesc(image); the resultant image has

  • 0

I have observed that whenever I use the command imagesc(image); the resultant image has some regions that are yellow in colour and the background is red.

Is there any way to segment these regions of the images ? If there is not do they have any similar pattern that can be used for thresholding or is the colour representation meaningless?

I am using Matlab R2012a on Windows.

  • 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-06-12T20:36:46+00:00Added an answer on June 12, 2026 at 8:36 pm

    When you are using imagesc (short for image scale), you are visualizing a matrix by mapping the lowest value of that matrix to one end of a colormap, and the highest value of the matrix to the other end.

    By default, MATLAB uses the jet() colormap which is the normal RGB-colorrange. If some parts of your image turns out to be yellow, it means that the elements of the matrix has been some spesific place between the highest and lowest value.

    The example below hopefully illustrates this more clearly and shows how you can segment out the “yellow” regions of a matrix (which doesn’t really have any color per se)

    colorRes = 256;
    
    %# In a jet colormap with size 256, yellow is at placement 159
    yellow = 159;
    yellowScale = ((yellow/256));
    
    image = repmat(1:colorRes,40,1);
    
    figure(1);clf;
    colormap(jet(colorRes))
    
    subplot(2,1,1)
    imagesc(image)
    title('Original image')
    
    %# Segment out yellow
    colorDist = 1/colorRes*5; %# Make scalar higher to include colors close to yellow
    imageSegmented = zeros(size(image));
    imageSegmented(abs(image/colorRes-yellowScale)< colorDist) = 1;
    
    subplot(2,1,2)
    imagesc(imageSegmented)
    title('Yellow segmented out')
    

    enter image description here

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have observed that components has a uniform, neat and well arrange code structure.
I have observed that, very infrequently, Internet Explorer (7 or 8, it does not
I have 600,000+ observed data that I want to sample proportional to its ZIP
I have a simple MVC 4 (Beta) Application and just observed something that I
I have a complex custom view - photo collage. What is observed is whenever
I have observed that windowWillClose is called when the user closes a window but
I have observed that in C++ namespaces are very rarely used while in .Net
I have built a small app that has a JSlider which controls the speed
In testing document.location.href, I have observed that when the user initiates an action that
We have an Android app that consists of about 20 activities. Whenever there is

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.