473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Is this easy? Finding the RGB values of a photo?

Hello,

There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?

Thanks
Sam

Mar 26 '07 #1
4 2255
sa***********@yahoo.ca wrote in news:1174873547.476907.34180
@n76g2000hsh.googlegroups.com:
and would like to
determine the RGB values of a certain section of the photograph?
what do you consider a section... and what do you consider the RGB value of
the section? Average RGB, max, min, etc?
Mar 26 '07 #2
sa***********@yahoo.ca wrote:
Hello,

There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?

Thanks
Sam
If you're just after obtaining the Color Value of a Pixel within your
image, see "GetPixel" method in Help.

ShaneO

There are 10 kinds of people - Those who understand Binary and those who
don't.
Mar 26 '07 #3
<sa***********@yahoo.caschrieb:
There are various "Color Pickers" out there, where a series of colors
are displayed on a grid and when the user clicks one of these colors,
it is selected, and processed by the application. NOW THE QUESTION:

Is there an easy way to do this in the opposite direction? For
example, what if you have a photographic image and would like to
determine the RGB values of a certain section of the photograph?
Load the image into an 'Image'/'Bitmap' object and use its 'GetPixel' method
to determine the color of a certain pixel.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Mar 26 '07 #4
On Mar 25, 10:07 pm, Spam Catcher <spamhoney...@rogers.comwrote:
samadams_2...@yahoo.ca wrote in news:1174873547.476907.34180
@n76g2000hsh.googlegroups.com:
and would like to
determine the RGB values of a certain section of the photograph?

what do you consider a section... and what do you consider the RGB value of
the section? Average RGB, max, min, etc?
Say I have a photograph of oh, 1000 x 1000 pixel. I want to get a
certain section of this photograph, say 25 x 25 pixels, as it is a
photograph, all the pixels might have and probably will have differing
pixel values. I was wondering the best way to determine the "average"
or "whatever" of this 25 x 25 pixel region, and determine an "average"
or "estimate" RGB value for this section of the photograph. In other
words, even though all the pixels are probably different, as a
"region" they might be pink if on a face, or blue if the ocean, etc.

Perhaps there is software out there that will do this?

Thanks

Mar 27 '07 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Brian | last post by:
I'm creating a simple order form that allows visitors to order photographs from an artist's web site. For each photo available for sale, there is a checkbox whose name is "photo". The form uses...
5
by: Philip D Heady | last post by:
Ok, here's my code. Can't get it to check file extension properly or file size...had it working before but not sure why it's buggy now. } elseif ($photo) { $ext = strtolower(substr($photo,...
2
by: Eric McDaniel | last post by:
I am trying to read in a bunch of images and manipulate them using Image::Magick, then display them using Tk::Photo. I would like to do this without creating a temp file for each image, since there...
2
by: Tony WONG | last post by:
i am not sure that this subject can be discussed here. i have many photos. they are stored according to the name of the EVENT and YEAR. i will set up a database (sql or access) to store...
1
by: Bill Strass | last post by:
I have a form showing the records of different people. I would like a photo to be displayed in the form, with each person's record. My digital photo > *.jpg type file and I change each photo...
1
by: Neil | last post by:
I am using ShellExecute to open JPG files with the associated application, MS Photo Editor, from within an Access 2000 application. When the code is run the first time (Photo Editor closed),...
1
by: Throw | last post by:
G'day everyone I'm looking for a simple photo gallery script in PHP (or Perl), but not too simple. I have tried several photo gallery scripts in either language and I have found that they are...
2
by: ElkGroveR | last post by:
Hi there! I'm using PHP to create a simple, dynamic MySQL SELECT query. The user chooses a selection from a HTML Form SELECT element's many options and submits the form via a POST action. ...
0
by: pauld | last post by:
Hello- Note: this is all VB/Asp.net 2.0 I have a formview(insert template) whose fields are bound to a datagrid that is connects to an MS SQL Server 2005 database. One of the options on the...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.