Image segmentation can isolate objects within a scene so they can be manipulated independently. In this example, a goose is selected using a bounding box and segmented from the image. The same region is then removed using inpainting, which reconstructs the surrounding background. Finally, the extracted goose is composited back into the image at a new location.
Start with an image:
In[1]:=
img=
;
Identify the bounding boxes that contain the individual geese: