Search found 17 matches

by cowboyzed
2017-06-05T08:21:50-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Otherwise I want to know if there is a way to easily install these latests versions of IM under windows. The latest version of PECL supports only IM 6.9.3.
by cowboyzed
2017-05-21T13:05:31-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

I have ImageMagick 7.0.5-5 Q16 x86_64.

I want to know : is this last command get the job faster than previous "convert" ?
by cowboyzed
2017-05-20T01:27:24-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

fmw42 and snigbo,

thank you very much. Now my script run faster (from 2400s to 500s)

:)

PS : I will install the beta version later. I hope the new command will increase performance.
by cowboyzed
2017-05-19T00:03:50-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Ok. I want to say there is now two differents algorithms : 1. Chop into 6 images, looping over these 6 images, using subimage-search (with rotation) over the big image. 2. Chop into 6 images, comparing each of the 6 images (with rotation) against the others and take the best score. Now we got the so...
by cowboyzed
2017-05-18T23:37:31-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Thank you very much. Your command is useful : I can rotate the small image and use subimage-search without using intermediate files. I want to get the score matching and I will use the following : convert \ \( 370669patch.png +repage -background black -alpha background \) \ \( 224977object4.png +rep...
by cowboyzed
2017-05-17T04:56:07-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Please note the algorithm proposed by snigbo : https://www.imagemagick.org/discourse-server/viewtopic.php?f=1&t=31928#p146096 With the big image : https://img4.hostingpics.net/pics/370669patch.png We have to detect this subimage which is repeated : https://img4.hostingpics.net/pics/224977object4...
by cowboyzed
2017-05-16T18:41:42-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

The last example gives :
Image then Image

untill
Image
(this last is the matching icon)
by cowboyzed
2017-05-16T08:30:41-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Could both the matching icons be cropped? The first match may be cropped, but not more than 5px. The second match could be cropped as I show in the image above. Your comparison method needs to treat transparent pixels as "wildcard", so they match any colour in the other image. Either that...
by cowboyzed
2017-05-16T07:32:49-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

I forgot to say that the real image will png with a background transparent. But if that changes anything or creates another issue, I will color white the background before all processes

Image

Image
by cowboyzed
2017-05-16T06:48:31-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

What do the red circles mean? I assume the red circles show one of the matching pair. Right! The red circles show the second subimage to be detected. But it will only work if each cropped image has the icon centered along with a properly centered reference icon that is being rotated. This is not a ...
by cowboyzed
2017-05-15T17:40:25-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

Ok, I try to re-explain what I need : I have to detect the subimage that is repeated, whether it's randomly rotated (or cropped). The method I found is to slice the big image into objects, then loop over these objects and compare per angle. This command does the job perfectly : compare -metric MSE -...
by cowboyzed
2017-05-15T12:42:05-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

I want to give it a try but I am not on Windows :( . As I said : your solution By FFT, what rotation? is great, but I think it's too sophisticated for this case
by cowboyzed
2017-05-15T12:15:21-07:00
Forum: Users
Topic: Compare (subimage-search) rotated image without intermediary files
Replies: 34
Views: 23215

Re: Compare (subimage-search) rotated image without intermediary files

I split this BIG_IMAGE.PNG into 9 parts to obtain OBJECT_1.PNG ... OBJECT_9.PNG. So the program aims to detect that the OBJECT_6.PNG is a copy (rotated) of OBJECT_3.PNG