ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 Using matchTemplate to find multiple matches
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Roland Kossow

Germany
5 Posts

Posted - Oct 05 2022 :  17:40:29  Show Profile  Reply
Is it possible to find with ...
rect := image.matchTemplate(templ, TIEVisionTemplateMatchMethod( cmbMethod.ItemIndex ), @rank);
... more than one matching pattern image?

I have an image where template could be inside multiple times and would like to find all instances of template in image.

xequte

38180 Posts

Posted - Oct 06 2022 :  00:00:28  Show Profile  Reply
Hi Roland

It is not presently possible, I'm afraid. But we have added it to the todo list.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page

Roland Kossow

Germany
5 Posts

Posted - Oct 06 2022 :  01:09:05  Show Profile  Reply
Hi Nigel.
Cool, thanks.
Go to Top of Page

superdev

19 Posts

Posted - Oct 06 2022 :  15:57:52  Show Profile  Reply
In my case, I solved it by temporarily copying the target image I found, then filling the image area with a different color and finding it again.
Go to Top of Page

Roland Kossow

Germany
5 Posts

Posted - Oct 06 2022 :  16:43:03  Show Profile  Reply
Good idea superdev. Anyhow, it would be a good addition Nigel - and probably not that much effort. But, thanks for the idea to workaround the limitation superdev.
Go to Top of Page

xequte

38180 Posts

Posted - Feb 08 2023 :  20:50:33  Show Profile  Reply
Hi

We have implemented TIEVisionImage.matchTemplateMulti in the upcoming IEVision 7.0.0.




Nigel
Xequte Software
www.imageen.com
Go to Top of Page

foxdingding

65 Posts

Posted - Feb 09 2023 :  23:56:39  Show Profile  Reply
Expect!
Go to Top of Page

foxdingding

65 Posts

Posted - Feb 09 2023 :  23:58:41  Show Profile  Reply
In my case,I continue to search after clearing.
But it's very slow
Go to Top of Page

Roland Kossow

Germany
5 Posts

Posted - Feb 10 2023 :  07:47:17  Show Profile  Reply
Great, thanks.
Looking forward to the new version.
Go to Top of Page

xequte

38180 Posts

Posted - Feb 11 2023 :  14:07:09  Show Profile  Reply
Hi

Yes, because the new method does not require a repeat of the search, it is much faster.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: