saalfeldlab / paintera

GNU General Public License v2.0
100 stars 17 forks source link

Convert ViewerMask to 2D backing images #466

Closed cmhulbert closed 4 months ago

cmhulbert commented 2 years ago

Currently, it is using a third dimension of length 1.

cmhulbert commented 2 years ago

The mask is currently still 3D as indicated (2D + depth of 1), but the ViewerMask is now aligned with the source data, and access into the mask must now be offset from the display/viewer coordinates when painting.

cmhulbert commented 4 months ago

This isn't really necessary, or even necessarily better. The current implementation is fine, unless future issues arise.