Skip to content

Optional mask argument for MatchTemplate_Demo#6758

Closed
acinader wants to merge 1 commit intoopencv:masterfrom
acinader:add-mask-to-match-template-demo
Closed

Optional mask argument for MatchTemplate_Demo#6758
acinader wants to merge 1 commit intoopencv:masterfrom
acinader:add-mask-to-match-template-demo

Conversation

@acinader
Copy link
Copy Markdown

@acinader acinader commented Jul 1, 2016

Accept and use optional mask argument for MatchTemplate_Demo.

Useful for visualizing effect of a mask on template matching.

@apavlenko
Copy link
Copy Markdown
Contributor

Currently the added code isn't used in the demo, so to prevent adding a dead code please also extend the demo to use a mask.

@acinader
Copy link
Copy Markdown
Author

acinader commented Jul 1, 2016

Hi @apavlenko . Glad to look into it. When you say extend the demo, do you mean this demo: https://github.com/tsdconseil/opencv-demonstrator

If so, I'll take a look, thought i'd probably have to start with tsdconseil/opencv-demonstrator#27

Or is there another demo you're referring to? If so, can you give me a link to get me started.

Thanks.

@apavlenko
Copy link
Copy Markdown
Contributor

apavlenko commented Jul 4, 2016

Actually I meant MatchTemplate_Demo but in reality I meant extending the tutorial that uses it: you added the code that can use mask but now it's not used, to make it useful please extend the tutorial that uses this demo app with the mask use - without use the feature is useless.

@acinader
Copy link
Copy Markdown
Author

acinader commented Jul 4, 2016

Hi @apavlenko thanks for getting back to me.

I think I understand - update the doc: http://docs.opencv.org/master/de/da9/tutorial_template_matching.html#gsc.tab=0

by editing the doxygen markdown in this doc:
https://github.com/opencv/opencv/blob/2f4e38c8313ff313de7c41141d56d945d91f47cf/doc/tutorials/imgproc/histograms/template_matching/template_matching.markdown

edit the docs to include how to use the mask with an example.

I am now able to build and view the doxygen files, so I think I should be able to do this.

Please let me know if I am not understanding your request.

Will take me at least a few days to get around to it and get it right.

If there is some other demo app that needs extending, please send me a link to where it is on github and I'll work on that too. Sorry if I am a little slow, but not very familiar with opencv (yet!).

Thanks!

@apavlenko
Copy link
Copy Markdown
Contributor

Hi @acinader, yes, this is exactly what I mean, thanks for your contribution!

@acinader acinader force-pushed the add-mask-to-match-template-demo branch from 7ae8ccd to a6ade2b Compare July 5, 2016 17:20
@acinader acinader closed this Jul 5, 2016
@acinader
Copy link
Copy Markdown
Author

acinader commented Jul 5, 2016

hm, so weird. its like github is busted or something (not likely). I updated the docs, pushed commit to my branch, but it isn't showing up here. never happened to me before. I do see that it is stuck on "checking for ability to merge automatically".

the commit shows up on my fork: https://github.com/acinader/opencv/commits/add-mask-to-match-template-demo

so odd!

So I closed it thinking i would be able to reopen, will have to create a new pr now....sorry

screen shot 2016-07-05 at 1 37 23 pm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants