Find Jobs
Hire Freelancers

Fast Finding a Bitmap contained inside another Bitmap and List the regions

$10-30 USD

Completed
Posted over 8 years ago

$10-30 USD

Paid on delivery
I have two bitmaps. Lets call the first as SmallBitmap and the other as LargeBitmap. The first bitmap has dimension of 10X10 pixels (this dimension could be changed in the future as an option). The second has the dimension of 600X600. I need to search the SmallBitmap over the LargeBitmap and list all the occurrences in a Tlist with the coordinates. I need a quickly response of the program to list the matches.
Project ID: 8469736

About the project

2 proposals
Remote project
Active 9 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
Good day! Something like that? List := [login to view URL]; function SearchBitmap(bmMain, bmSub:TBitMap; var R:TRect):boolean; type TIntArray = array [word] of integer; PIntArray = ^TIntArray; var p0, p1, p2:PIntArray; x, y:integer; x1, y1, w, w0, w1, k : integer; b : boolean; begin result := true; FillChar(R, sizeOf(R), 0); [login to view URL]:=pf32bit; [login to view URL]:=pf32bit; w := [login to view URL]; w0 := [login to view URL]*sizeOf(integer); w1 := [login to view URL]*sizeOf(integer); p0 := [login to view URL][0]; p1 := [login to view URL][0]; for y := 0 to [login to view URL] - [login to view URL] do begin for x := 0 to [login to view URL] - [login to view URL] do begin b := true; p2 := p1; k := 0; for y1 := 0 to bmSub.Height-1 do begin for x1 := 0 to [login to view URL] - 1 do begin if p0[k+x+x1] <> p2[x1] then begin b := false; break; end; end; if not b then break; integer(p2) := integer(p2) - w1; k := k - w; end; if b then begin R := Rect(x, y, x+[login to view URL], y+[login to view URL]); [login to view URL](R) end; end; integer(p0) := integer(p0) - w0; end; result := false; end;
$25 USD in 3 days
5.0 (14 reviews)
5.1
5.1
2 freelancers are bidding on average $40 USD for this job
User Avatar
Hello I'm interested to help you in this project. One question: do you want to exact match search or not exact? Thank you
$55 USD in 2 days
5.0 (30 reviews)
6.3
6.3

About the client

Flag of BRAZIL
Rio De Janeiro, Brazil
5.0
3
Payment method verified
Member since Mar 23, 2015

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.