subimage with different size
Posted: 2013-12-29T04:58:30-07:00
hello,
i have a problem and i can't find a solution. I created a marker, and i want to search this marker on a Pictue. I think the Problem is the different size from the marker in my image or i need another marker for ImageMagick.
This is the created marker:

And this is my Picture:

I convert the image with follow Command:
The result is this image:

Now i search the marker with this Command:
17735.4 (0.270625) @ 234,198

This position is wrong, and i make a new Image with this Command
The result is:

17861.8 (0.272554) @ 230,87

The same Problem, now is the position on top from my marker.
Has anyone any idea what can i do?
i have a problem and i can't find a solution. I created a marker, and i want to search this marker on a Pictue. I think the Problem is the different size from the marker in my image or i need another marker for ImageMagick.
This is the created marker:

And this is my Picture:

I convert the image with follow Command:
Code: Select all
convert original1.png -colorspace Gray -negate -edge 1 -negate original.png

Now i search the marker with this Command:
Code: Select all
compare -metric rmse -subimage-search original.png maske.png result.png

This position is wrong, and i make a new Image with this Command
Code: Select all
convert original1.png -fuzz 20% -fill black -opaque "#3b3b38" -fuzz 20% -fill white -opaque "#989692" test.png

Code: Select all
compare -metric rmse -subimage-search test.png maske.png result1.png

The same Problem, now is the position on top from my marker.
Has anyone any idea what can i do?