[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Calculate pixel contrast

Posted on 2004-11-08
Medium Priority
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
  • 2
LVL 55

Accepted Solution

Jaime Olivares earned 800 total points
ID: 12532549
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
ID: 12532632

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

873 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