Closed Andreas-Forster closed 6 years ago
Why not do a bounds check instead of the Try? Wouldn't it be more readable?
The checks would include querying the access mode so that we still can change the behaviour from the outside. I think this would not be more readable. But to further discuss that you can give it a try if you want to.
On Tue, Apr 24, 2018 at 2:24 PM, andreas-schneider <notifications@github.com
wrote:
Why not do a bounds check instead of the Try? Wouldn't it be more readable?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/unibas-gravis/scalismo-faces/pull/107#issuecomment-383911075, or mute the thread https://github.com/notifications/unsubscribe-auth/AEv_Zt8PaDsCeEbE1T5pMu58CycF_ENjks5trxmTgaJpZM4ThkPg .
--
Dr. Andreas Morel-Forster Departement Mathematik und Informatik Spiegelgasse 1 CH-4051 Basel PHONE: +41 61 207 05 52 MAIL: Andreas.Forster@u Forster.Andreas@gmail.comnibas.ch
This PR fixes #106 (see for discussion). For this, it simply treats the case where the color should be extracted outside of the image the same as invisible pixels. They return a
None
. When passing an image with a properAccessMode
this behavior can be changed.