Quote:
Originally Posted by Joe Ross
I'm confused. Why do you have images of different resolutions being scored and compared to each other?
|
They aren't different resolutions. This is best explained using visuals.
Here is the first picture:
Code:
XXXXX
XXXXX
XXXXX
XXXXX
XXXXX
And the second picture:
Code:
YYYYY
YYYYY
YYYYY
YYYYY
YYYYY
Now, he is trying to see how far the robot has moved is a given direction. His unit of measurment is pixels that the camera sees. He makes this measurement by overlapping the 2 pictures in every possible way. Here are 2 examples:
(Z is the overlap between the pictures)
Code:
XXXXX
XXXXX
XXXXX
XXXXX
ZZZZZ
YYYYY
YYYYY
YYYYY
YYYYY
Code:
XXXXX
ZZZZZ
ZZZZZ
ZZZZZ
ZZZZZ
YYYYY
In the case that example 1 is the right match, the robot has moved backwards 4 pixels. If example 2 is the right match, the robot has moved backwards 1 pixel. To figure out which overlap is the right match, he scores the overlap based on how many pixels in the
overlapping areas match color. So lets look at the overlap from the 2 examples:
Code:
ZZZZZ
ZZZZZ
ZZZZZ
ZZZZZ
Now, lets say just that all of the pixels in example 1 match up, but only half of the pixels in example 2 match. You would probably think "example 1 is the right match", but it only has a score of 5, where as the second picture has a score of 10. That is where the different areas come in.
I may have went a little overboard with this explanation

.