Hello guys,
I can't find the solution for this....
I have 2 images:
1º Image:
2º image:
I need to replace "Object C" from 1º image to white pixels using 2º image...
Sorry for my English...
remove object from image with other image?
Re: remove object from image with other image?
I think you should post an actual example.
How do you know where OBJECT C is in OBJECT A - is it always in the same place, do you have the co ordinates or will Imagemagick have to find it?
How do you know where OBJECT C is in OBJECT A - is it always in the same place, do you have the co ordinates or will Imagemagick have to find it?
Re: remove object from image with other image?
Bonzo wrote:I think you should post an actual example.
How do you know where OBJECT C is in OBJECT A - is it always in the same place, do you have the co ordinates or will Imagemagick have to find it?
IM has to find object C.
I'm using the command -->
Code: Select all
compare -subimage-search source.jpg objToFind.jpg out.jpg
wich -metric should I use?
Thanks for quick reply!!
Re: remove object from image with other image?
Here is an example.
I have these images -->
And here is the region to find and detele/blur/change -->
With command I wrote above I get this result -->
I have these images -->
And here is the region to find and detele/blur/change -->
With command I wrote above I get this result -->
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: remove object from image with other image?
For the original post:
The result is:
So the found image is positioned at (31,279).
This paints a red rectangle over the area. I choose red, so you can see it. Change "red" to "white" if you want.
Code: Select all
compare -metric RMSE first.jpg objects_To_Remove.jpg -subimage-search NULL:
Code: Select all
1092.34 (0.0166681) @ 31,279
Code: Select all
convert first.jpg ( objects_To_Remove.jpg -fill Red -colorize 100 ) -geometry +31+279 -composite z.png
snibgo's IM pages: im.snibgo.com