• Please use real names.

    Greetings to all who have registered to OPF and those guests taking a look around. Please use real names. Registrations with fictitious names will not be processed. REAL NAMES ONLY will be processed

    Firstname Lastname

    Register

    We are a courteous and supportive community. No need to hide behind an alia. If you have a genuine need for privacy/secrecy then let me know!
  • Welcome to the new site. Here's a thread about the update where you can post your feedback, ask questions or spot those nasty bugs!

Digital Processing Issues and Fixes: Content Aware Fill: Plants and other Non-geometric Features.

Asher Kelman

OPF Owner/Editor-in-Chief
The content Aware feature of Photoshop is a useful tool for deleting portions of a photograph quickly and having the background rebuilt seamlessly. It works well were the b.g. is a brick wall or a wooden fence, even receding lines, as the geometry engine in Photoshop recognizes the patterns with few errors. In landscapes, however, it makes less wise choices of what to copy and does not respect the notion of a plant as a form to be preserved. So one can get obviously weird results with the incomplete side of a cut off bush being built up out of grass taken from somewhere else in the picture. It's not smart enough to cole the plant, flip it horizontally, randomly alter the branching and so repair the plant. It seems to know nothing about plants.

[Group 2]-_0045734__0045735-2 Areas labelled_800.jpg


Asher Kelman: Laden Lemon Tree

Output from Autopano Giga cropped

Adjacent images stitched in AutoPano Giga from DNG files
Ricoh GXR 50mm Macro Lens-APS-C-Sensor Module


Here's an example. I happened to notice a tree laden with ripe lemons, a nice autumn sight in Southern California. Only having my 50mm Ricoh GXR, I grabbed two overlapping shots. Later I stitched these in Autopano Giga. As you can see, to keep the entire tree, we have to deal with 3 areas with no information, A, B and C.

We can select all 3 areas and then have Photoshop "FILL" these areas, (Edit-Fill-Content Aware). Look especially carefully at area "B" on the right side, where a leafy shrub needs to be rebuilt.


[Group 2]-_0045734__0045735-2_content_aware_entireimagereference.jpg


Asher Kelman: Laden Lemon Tree

Content Aware Fill Using Entire Picture

Adjacent images stitched in AutoPano Giga from DNG files
Ricoh GXR 50mm Macro Lens-APS-C-Sensor Module

As you can see the program samples green areas, but not necessarily those appropriate for the area. In the case of area B, a mush of grass is used to complete the cut off shrub! It cannot differentiate between a grass and a leafy plant! So what to do? I thought the best thing is to limit choices. So I made a selection of adjacent content that has the appropriate patterns only and then did content aware fill for just that isolated portion on a separate layer. Then I assembled the entire image.



[Group 2]-_0045734__0045735-Final_800.jpg


Asher Kelman: Laden Lemon Tree

Content Aware Fill Using Discrete Appropriate Content only
Separate Photoshop Layer for each unique area to be filled

Adjacent images stitched in AutoPano Giga from DNG files
Ricoh GXR 50mm Macro Lens-APS-C-Sensor Module


Now the error in the corner post is repaired by simple cloning, (as content aware fill failed, it made a nice pattern instead by mirroring the shaded areas pretty, but wrong.) Then the picture was optimized to my taste.


[Group 2]-_0045734__0045735-2 cornerpostcorrected Edits.jpg



Asher Kelman: Laden Lemon Tree

Repaired as previous image and optimized to taste in Photoshop

Adjacent images stitched in AutoPano Giga from DNG files
Ricoh GXR 50mm Macro Lens-APS-C-Sensor Module

Of course, I'm going to return with my Canon 5DII and the 24mm T-SE, to get the picture in one shot. Still, in the process of repairing this picture, I learned that one can use content aware fill for more complex content, but one needs to create cutouts first with just the texture one needs adjacent to the place to be filled in. If you has discovered other interesting ways of leveraging the content-aware fill tool, this, please share!

Asher
 
Top