Creative Communities of the World Forums

The peer to peer support community for media production professionals.

Activity Forums Adobe After Effects Removing objects from footage based on size

  • Removing objects from footage based on size

    Posted by Marc Adamson on January 6, 2023 at 4:54 pm

    Hello,

    I have keyed out a scene shot in front of a green screen, I now have a transparent background and various opaque objects in the scene. I’m looking to automatically remove all objects that are less than X number of pixels across, so that only objects that are bigger than this value remain in the scene.

    If anyone could shed some light as to what approach would be best for this, I would be most grateful. Is there an effect (or a combination) that could be used to achieve this? Or would a custom expression/script be the best way?

    Many thanks,
    Marc

    Max Haller replied 3 years, 3 months ago 2 Members · 1 Reply
  • 1 Reply
  • Max Haller

    January 19, 2023 at 7:40 pm

    Hey Marc

    Theres no built in method of doing this that i know of. But i have had luck in the past using the following technique, although it’ll depend a lot on your footage.

    You start by generating a black and white luma matte of the scene, where the small objects are white. Usually just by Tint and then levels adjustments. Then you can try to apply blurs to the luma matte layer and tweak the color levels of it with the levels or curves effects. The idea being that between the blurs and level changes the small objects will get blacked out and thus become invisible.

    Doesn’t always work but worth a shot. You might have to make a garbage matte over the subject of your shot so the edges don’t get eroded. You can also try other effects on the matte like chokers to expand the matte enough to block out the tiny objects.

We use anonymous cookies to give you the best experience we can.
Our Privacy policy | GDPR Policy