"Spot the difference" game code

조회 수: 1 (최근 30일)
abu
abu 2013년 4월 18일
hi i need a code which 1. detect 2 similar image and crop them out(example from browser) 2. detect the differences between 2 images 3. show the differences, count and label them(example difference no.1,difference no.2)
basically the code is like a cheat to the "spot the differences" game and tell u how many and where are the differences. Appreciate if some1 could help me on the code. Thanks in advance.

채택된 답변

Image Analyst
Image Analyst 2013년 4월 18일
Try to just subtract them:
differenceImage = single(image1) - single(image2);
imshow(differenceImage, []);
Then you can threshold and blacken the differences, or make them red, or outline them, or whatever you want to do.
  댓글 수: 8
Image Analyst
Image Analyst 2013년 4월 21일
Yes, I saw that, but what I want to know is if my code snippets above helped you. Did you actually try them? Or not? It sounds like not. If not, then why not?
abu
abu 2013년 4월 22일
Yes, that pretty much solved the comparing difference part. My problem noow would be how to crop the 2 image from browser in order to compare them

댓글을 달려면 로그인하십시오.

추가 답변 (1개)

abu
abu 2013년 4월 20일
http://imageshack.us/photo/my-images/14/examplesk.png/ this is the example i need to crop. i need the 2 similar picture. thx a lot.

카테고리

Help CenterFile Exchange에서 Startup and Shutdown에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by