FORUMS: list search recent posts

Overlaying an image exactly on top of identical image

COW Forums : Adobe After Effects

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Guy Manzur
Overlaying an image exactly on top of identical image
on Dec 12, 2016 at 3:11:07 pm

Hi
I'm trying to do the following - I have a static image that appears in video clip, and I also have that image as a separate independent file.
(For example - a video of a kitchen with a specific cup, and I have that exact cup in an image file).
The camera in the video is STILL, and it's a 2D animation.
I want to be able to place the image EXACLTY on top of the identical image that appears on the video (but again - the object in the video is STILL through the entire time).
I need to do it multiple times, so doing it manually is not an option.

Is there any way I can use to track motion or something like that, to make it easier?
I've tried doing the following:
Let's call the video Layer 1, and the image file Layer 2.
I've put both in a comp, and used track motion for 1 frame, to identify the offset (which was random) between Layer 2 and it's appearance in the video in Layer 1.
It does find this offest (position and scale), but I do not know how to "reverse" it in order to place Layer 2 exactly on top of that object in Layer 1.

Any ideas?

Thank you


Return to posts index

Blaise Douros
Re: Overlaying an image exactly on top of identical image
on Dec 13, 2016 at 12:18:44 am

Dave is terse, but correct. There is NO solution that allows AE to automagically identify an image as being similar or identical to an onscreen object, and correcting the position, scaling, etc to match. That's a job for advanced computer vision and machine learning specialists working with huge supercomputers on custom software, and After Effects just can't do it.

So, as Dave says, either prepare to do some manual work (and get used to it, there's a lot of that in this business!) or perhaps if you can explain what exactly you're trying to accomplish, we can find a better way to help you.

Personally, I don't really understand why you're trying to replace a still object with a 2D image of the same still object.


Return to posts index

Roei Tzoref
Re: Overlaying an image exactly on top of identical image
on Dec 13, 2016 at 9:21:29 am

maybe this same thread topic in Adobe forums will give the contributes more information as to what Op is trying to accomplish:
https://forums.adobe.com/message/9188303

Roei Tzoref
After Effects Artist & Instructor
♫ Ae Blues Tutorials


Return to posts index


Daniel Waldron
Re: Overlaying an image exactly on top of identical image
on Dec 13, 2016 at 3:21:04 pm

Sorry, but I'm also a little confused on this whole problem. Why do you need to place the exact copy of a still image on top of the animated one. Could you not simply freeze frame the animation where you need to?

Unfortunately I don't think the motion tracker is designed to work the way you are attempting to use it.


Return to posts index

Guy Manzur
Re: Overlaying an image exactly on top of identical image
on Dec 13, 2016 at 3:24:06 pm

I need the oposite - I want to place an animated object on top of a static object that appears in a video.
Anyway, I don't think it really really matters why it's needed.

As you can see above, I just replied with a link to a video of the solution, which I figured out myself, using the motion track.






Return to posts index

Daniel Waldron
Re: Overlaying an image exactly on top of identical image
on Dec 13, 2016 at 3:50:54 pm

I see. Very interesting. Glad it worked for you!


Return to posts index


Roei Tzoref
Re: Overlaying an image exactly on top of identical image
on Dec 15, 2016 at 10:12:01 am

[Guy Manzur] "As you can see above, I just replied with a link to a video of the solution, which I figured out myself, using the motion track."

thanks for hanging in there and now I see what you mean: by placing the two identical images side by side in a precomp and tracking it, you fool the tracker to think it has shifted and it moves the attach point to the new place. then you can use this information to a null

it looks you can spend about 2 minutes in this method of placing one image over the other including all the setup required. ... how long would it take you to do this manually? taking the image you want to place, setting it's anchor point to on of the eyes, placing it on top of the other one and scaling it back using opacity or difference mode - a close competition I Imagine.

Roei Tzoref
After Effects Artist & Instructor
♫ Ae Blues Tutorials


Return to posts index

Guy Manzur
Re: Overlaying an image exactly on top of identical image
on Dec 15, 2016 at 10:14:54 am

It would've take about the same time to achieve 95% match, not 100% like in this method :)


Return to posts index

Roei Tzoref
Re: Overlaying an image exactly on top of identical image
on Dec 15, 2016 at 10:57:42 am

o.k since you are the one doing this all the time, you know best what works for your needs. glad it worked out, and guess we all learned something. I would also update the Adobe forums thread and post the YouTube link in a response and mark it as a correct answer, maybe this could be useful for other users too.

Roei Tzoref
After Effects Artist & Instructor
♫ Ae Blues Tutorials


Return to posts index


Darby Edelen
Re: Overlaying an image exactly on top of identical image
on Dec 20, 2016 at 10:02:09 pm

Have you checked it using the difference blend mode? I doubt it's 100%. Maybe better than 95% but given the nature of sub-pixel interpolation I dare say it's nearly impossible to have a 100% match using a corner pin.

Darby Edelen


Return to posts index

Roei Tzoref
Re: Overlaying an image exactly on top of identical image
on Dec 21, 2016 at 5:01:49 am

Op argues that through his creative method he can get 100% accuracy and faster than manually placing it through the use of difference. He uses regular transform tracking to fool Ae that the image as shifted in order to apply the data to a null and attach the new image so it will be placed exactly over the original. This is demonstrated in the video. Pretty cool but I think the difference method is faster for me. Maybe a competition is in order :)

Roei Tzoref
After Effects Artist & Instructor
♫ Ae Blues Tutorials


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2019 CreativeCOW.net All Rights Reserved
[TOP]