Calculate pixel contrast

Posted on 2004-11-08
Last Modified: 2013-11-20

i am new on image processing. I am using embedded visual C++ for pocket pc programming . I want to know how to calculate the contrast of each pixel , then find out the maximum contrast point.

Any fast algorithm to do it? It is better to have some sample

Many Thanks
Question by:smallee
    LVL 55

    Accepted Solution

    I am not sure about what you mean with contrast.
    Contrast is a relative value that can't be calculated for individual pixels, you need to analyze all pixels of an image first.
    Maybe you want to know luminosity of each pixel, there is a simple formula to convert a color value to a grey level, then you can calculate max and min values to apply contrast compensation:

    grey = 0.299*red + 0.587*green + 0.114*blue;
    LVL 55

    Expert Comment

    by:Jaime Olivares

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    If you use Adobe Reader X it is possible you can't open OLE PDF documents in the standard. The reason is the 'save box mode' in adobe reader X. Many people think the protected Mode of adobe reader x is only to stop the write access. But this fe…
    Have you tried to learn about Unicode, UTF-8, and multibyte text encoding and all the articles are just too "academic" or too technical? This article aims to make the whole topic easy for just about anyone to understand.
    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.
    Hi everyone! This is Experts Exchange customer support.  This quick video will show you how to change your primary email address.  If you have any questions, then please Write a Comment below!

    758 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

    13 Experts available now in Live!

    Get 1:1 Help Now