473,395 Members | 1,348 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,395 software developers and data experts.

picture compare

Does any one know how to compare pixels in a picture, or a dll that will
allow me to do so. I need to be able to find objects in a picture. Like a
table, chair, car etc. Compare a given picture say of a car, and scan another
picture for same type of car?
Mar 9 '06 #1
4 2201
How are your AI skills? You're looking at a huge pain in the butt of a
problem there. It can be done, but is extremely difficult to do.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer

Presuming that God is "only an idea" -
Ideas exist.
Therefore, God exists.

"Dave" <Da**@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Does any one know how to compare pixels in a picture, or a dll that will
allow me to do so. I need to be able to find objects in a picture. Like a
table, chair, car etc. Compare a given picture say of a car, and scan
another
picture for same type of car?

Mar 9 '06 #2

"Dave" <Da**@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Does any one know how to compare pixels in a picture, or a dll that will
allow me to do so. I need to be able to find objects in a picture. Like a
table, chair, car etc. Compare a given picture say of a car, and scan
another
picture for same type of car?


This is really a very complicated question, this type of code generally uses
neural networks or the like. The best I can recommend is that you google for
"content based image retrieval" and read up.
Mar 9 '06 #3
> Does any one know how to compare pixels in a picture, or a dll that
will allow me to do so. I need to be able to find objects in a
picture. Like a table, chair, car etc. Compare a given picture say of
a car, and scan another picture for same type of car?

I don't know of this functionality is nice-to-have or required, but let me
outline a few of the issues you'll have to deal with and then you can decide
wether it's worth it:

A pixel-by-pixel comparison will not handle:
- variations in lightsource
- variations in size
- minor differences like a pixel here and there off by a minute amount of
color
- color differences
- rotation
- scale
- mirrored versions

Let's take an example of comparing two whole images to see if they're the
same image, as is a typical example of what a news agency or ad agency would
like to do. You'd have to cope with:

- cropped versions of the image (to get rid of black/white border after scanning
for instance)
- mirrored versions of the image
- scale differences (one image is 800x600, the other 1280x1024)
- minor editing, like removing red-eyes or just enhancing contrast and the
likes

The particular algorithm you need to pick depends heavily on your exact needs
and you'll not find a fits-everything algorithm that can handle all the cases.
If you need to look at a photograph and extract objects like "car", "chair",
"person", etc. then you need to find a neural-net or similar algorithm with
heavily image analysis procedures to get those objects. If you put a person
up against a light wall you have no problems seeing what is a person and
what is a wall, but the computer needs explicit instructions.

If this is a nice-to-have project/module then my advise would be to either
buy it or forget it.

--
Lasse Vågsæther Karlsen
http://usinglvkblog.blogspot.com/
mailto:la***@vkarlsen.no
PGP KeyID: 0x2A42A1C2
Mar 10 '06 #4
Dave,

It sounds to be like image recognition. I don't believe this is that simple
to be answered in a ng.

Even if you have in mind just comparasing pixels. I'm not sure this is going
to work. The cars on one picture even of the same model and with the same
color will be different in term of pixels. It depends on the lighting, angle
fo shooting, background, image compression used in the file and many many
more. You can see that you can not do just simple comparison. Before
starting comparing pixels you need to filter out all the information that is
not related to the car.
There are books written on the subject.

--

Stoitcho Goutsev (100)

"Dave" <Da**@discussions.microsoft.com> wrote in message
news:19**********************************@microsof t.com...
Does any one know how to compare pixels in a picture, or a dll that will
allow me to do so. I need to be able to find objects in a picture. Like a
table, chair, car etc. Compare a given picture say of a car, and scan
another
picture for same type of car?

Mar 10 '06 #5

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

Similar topics

10
by: Chris Coho, Jr. | last post by:
Ok, I'll explain the whole problem because there may be several ways to solve this and hopefully someone knows one. What I'm doing is creating a specialty template editor, similar to say a corel...
2
by: Lyn | last post by:
I am trying to embed a picture into a Bound Object Frame (Me!Photograph) with the following code which is based on MS article http://support.microsoft.com/?id=158941: strPathname =...
6
by: John Ortt | last post by:
Hi there everyone, I have a part info form which has a faded image of our company logo as a background. I want to replace the faded image with a bright red warning image on items which have run...
2
by: Regnab | last post by:
I've got a YES/NO section of a report I'm making. Depending on certain values, I want to circle either YES or NO. I've got the code working so it'll show or hide the circle, but I can't seem to get...
1
by: TC | last post by:
How can I make my ASP.NET app display a single different picture each day, instead of one every page load? Thanks
14
by: Dino M. Buljubasic | last post by:
I would like to be able to compare BackgroundImage Property of two picture boxes on my form. How can I do that? I am using : if (pctOne.BackgroundImage Is pctTwo.BackgroundImage) then //...
4
by: Crirus | last post by:
I have a square picture. I need to draw a circle on it, and everything outside that circle to be set to a certain color, so the image looks framed On other words, I want to crop a circle form a...
6
by: Jeff | last post by:
Hey (and thank you for reading my post) In visual web developer 2005 express edition I've created a simple website project.. At this website I want users who register to be able to upload a...
3
by: raghunadhs | last post by:
hi all! i have a picture box, in that picture box, there is a picture asume it as "pic1.bmp".. now i have made some changes in that picture. Now i want to load a picture to a image( my form...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.