Ask Your Question
0

Finding SubImage from MainImage in Android

asked 2014-01-03 05:41:28 -0600

Mehul Thakkar gravatar image

updated 2014-01-03 05:45:04 -0600

I have 2 images, 1 main image and 1 sub image, now i want to find that does subImage is part of MainImage or not, if it is part of main image then at which location(coordinates) of main image.

For solving the my question, i have tried template matching, but template Matching is giving fine result if and only if sub image is of exact size as part of main image, but if sub image is scaled, then it is not able to give the accurate result/ fails.

Now, please if anyone knows about it, please help me out in that. Any help will be appreciated. As i am totally new to opencv as well as android, please give me detailed procedure or code if possilble. thanks in advance.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2014-01-05 15:07:15 -0600

Roman gravatar image

Hi,just quick idea, what about Feature matching? It could help you if subimage is rotated/scaled/skewed. More details is in similar question there: Checking images for similarity with OpenCV

edit flag offensive delete link more

Comments

I am not getting how to make Android code for that

Mehul Thakkar gravatar imageMehul Thakkar ( 2014-01-06 00:33:09 -0600 )edit
Roman gravatar imageRoman ( 2014-01-06 01:37:24 -0600 )edit

I have followed that tutorial, How to use it with eclipse, i dont know, they are installing the thier example by command-line to device. I dont know how they are using the both .so files they have made in that example

Mehul Thakkar gravatar imageMehul Thakkar ( 2014-01-06 22:13:28 -0600 )edit

Question Tools

Stats

Asked: 2014-01-03 05:41:28 -0600

Seen: 745 times

Last updated: Jan 05 '14