cwwalter / brighter-fatter

Brighter-Fatter effect work directory
0 stars 1 forks source link

Change the edge trimming to use the DM subimage functionality #2

Closed cwwalter closed 9 years ago

cwwalter commented 9 years ago

In a HipChat conversation on Dec 1st Robert Lupton told me:

This is the classic use for a subimage: center = maskedIm[20:-20, 20:-20]

Changes to center (spelt in Usan for your sake) will change maskedIm, but if all you want is your subimage you're in business. Or center = maskedIm[20:-20, 20:-20].clone() if you want a copy