Find location of subset image in actual image

Completed Posted Apr 13, 2008 Paid on delivery
Completed Paid on delivery

I need a *fast* implementation of finding the x,y coordinates of a subset of an image within the actual image. I'll pass in 2 HBITMAPS's. The prototype for the function will be bool FindSubSetCoords(HBITMAP actual, HBITMAP subset, POINT *subsetCoords, COLORREF fontColor) The return value will be true if a subset is found within the actual image, false if it's not found. The POINT * should receive the coordinates of the subset image within the actual image (if the return value is true) This function is used to find what part of a font is visible in the actual image, so I'll also pass in the font color (that's the only color you need to care about, the rest is just background pixels). 99% of the time the subset image will be attached to the edges (ignoring the background color). In other words, the top of the subset image will be at the top of the actual image, or the bottom of the subset image will be the bottom of the actual image etc. (as long as you ignore the background color). If you can optimize based on that information, that's even better. Please don't do the obvious approach of trying to compare whether all the pixels in the subset match the actual image starting at coordinates 0,0, then trying again at 1,0, then at 2,0 etc. That is just too slow.

## Deliverables

1) Complete and fully-functional working program(s) in executable form as well as complete source code of all work done.

2) Deliverables must be in ready-to-run condition, as follows (depending on the nature of the deliverables):

a) For web sites or other server-side deliverables intended to only ever exist in one place in the Buyer's environment--Deliverables must be installed by the Seller in ready-to-run condition in the Buyer's environment.

b) For all others including desktop software or software the buyer intends to distribute: A software installation package that will install the software in ready-to-run condition on the platform(s) specified in this bid request.

3) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).

## Platform

Win XP/Vista, VC++6/2005

C Programming Odd Jobs

Project ID: #3867561

About the project

5 proposals Remote project Active Apr 16, 2008

Awarded to:

cipher17

See private message.

$68 USD in 3 days
(5 Reviews)
2.4

5 freelancers are bidding on average $61 for this job

VCExperts

See private message.

$68 USD in 3 days
(15 Reviews)
4.9
desktopguru

See private message.

$42.5 USD in 3 days
(5 Reviews)
3.5
longuyen

See private message.

$59.5 USD in 3 days
(12 Reviews)
3.2
simplycreativevw

See private message.

$68 USD in 3 days
(1 Review)
0.8