changing a picture into black and white and grayscale error message

Posted on 2009-04-20
Last Modified: 2013-11-25
I am studying the Imaging Processing Toolbox tutorial and under the 'Example 2  Advanced Topics' chapter, everything is fine until I get to 'Step 5: Adjust the Contrast in the Processed Image'. I get the following error;

??? Error using ==> imadjust>parseInputs at 212
IMADJUST(I) is only supported for 2-D grayscale images.

Error in ==> imadjust at 98
[img,imageType,lowIn,highIn,lowOut,highOut,gamma] = ...

when I enter I3=imadjust(I2);

Can someone please advise why this is?
I am trying to change the picture below into black and white and grayscale
What does this mean
Question by:jtiernan2008
    1 Comment
    LVL 1

    Accepted Solution

    figured it out :)

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Join & Write a Comment

    There is an easy way, in .NET, to centralize the treatment of all unexpected errors. First of all, instead of launching the application directly in a Form, you need first to write a Sub called Main, in a module. Then, set the Startup Object to th…
    Having just graduated from college and entered the workforce, I don’t find myself always using the tools and programs I grew accustomed to over the past four years. However, there is one program I continually find myself reverting back to…R.   So …
    The goal of the video will be to teach the user the difference and consequence of passing data by value vs passing data by reference in C++. An example of passing data by value as well as an example of passing data by reference will be be given. Bot…
    This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now