Click here to Skip to main content
15,887,175 members
Home / Discussions / C#
   

C#

 
AnswerRe: how to insert.. Pin
Nagy Vilmos23-Jul-09 6:19
professionalNagy Vilmos23-Jul-09 6:19 
QuestionSCSF application is taking a lot of time to load Pin
Sakshi Smriti23-Jul-09 1:57
Sakshi Smriti23-Jul-09 1:57 
AnswerRe: SCSF application is taking a lot of time to load Pin
Muhammad Mazhar23-Jul-09 2:48
Muhammad Mazhar23-Jul-09 2:48 
Questioncreate Folder in remote Server with c# Pin
Abdul Rahman Hamidy23-Jul-09 1:55
Abdul Rahman Hamidy23-Jul-09 1:55 
AnswerRe: create Folder in remote Server with c# Pin
Muhammad Mazhar23-Jul-09 2:24
Muhammad Mazhar23-Jul-09 2:24 
GeneralRe: create Folder in remote Server with c# Pin
Abdul Rahman Hamidy23-Jul-09 2:37
Abdul Rahman Hamidy23-Jul-09 2:37 
GeneralRe: create Folder in remote Server with c# Pin
Muhammad Mazhar23-Jul-09 3:01
Muhammad Mazhar23-Jul-09 3:01 
QuestionHow can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 1:12
verence33323-Jul-09 1:12 
Hello.

I have two Bitmaps. I know that the small one is contained within the big one, and I want to search for it and return its position (a Rectangle):

public Rectangle findBitmap(Bitmap smallBmp, Bitmap bigBmp);


I can do this by making lots of pixel comparations in nested fors, but obviously it's too time-consuming since there can be literally hundreds of thousands of comparations. I need a *very* fast way to do this.

I've been reading for a while about Template Matching and I think it could be the way, but it's a difficult subject and I have not found any example or code that could help me. Could you please give me some advice?

Thanks in advance.
AnswerRe: How can I find a Bitmap within another Bitmap? Pin
Tom Deketelaere23-Jul-09 1:46
professionalTom Deketelaere23-Jul-09 1:46 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 2:00
verence33323-Jul-09 2:00 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 2:26
verence33323-Jul-09 2:26 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
Tom Deketelaere23-Jul-09 3:01
professionalTom Deketelaere23-Jul-09 3:01 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 3:11
verence33323-Jul-09 3:11 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
Tom Deketelaere23-Jul-09 3:17
professionalTom Deketelaere23-Jul-09 3:17 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 20:32
verence33323-Jul-09 20:32 
AnswerRe: How can I find a Bitmap within another Bitmap? Pin
benjymous23-Jul-09 4:09
benjymous23-Jul-09 4:09 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 20:34
verence33323-Jul-09 20:34 
AnswerRe: How can I find a Bitmap within another Bitmap? Pin
ThomasManz23-Jul-09 6:30
ThomasManz23-Jul-09 6:30 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 20:41
verence33323-Jul-09 20:41 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
ThomasManz24-Jul-09 5:16
ThomasManz24-Jul-09 5:16 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33326-Jul-09 20:00
verence33326-Jul-09 20:00 
AnswerRe: How can I find a Bitmap within another Bitmap? [modified] Pin
Luc Pattyn23-Jul-09 6:59
sitebuilderLuc Pattyn23-Jul-09 6:59 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33323-Jul-09 21:00
verence33323-Jul-09 21:00 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
Luc Pattyn24-Jul-09 1:13
sitebuilderLuc Pattyn24-Jul-09 1:13 
GeneralRe: How can I find a Bitmap within another Bitmap? Pin
verence33324-Jul-09 2:12
verence33324-Jul-09 2:12 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.