Combining Aligned Image Masks
Two masks on the same grid can be combined by applying logical operations to corresponding positions.
- Source
- Anbloq
- Language
- English
- Created
- Updated
- Chapters
- 2
- Reading time
- 1 min
In this article2 chapters
Trace selection overlap
If mask A marks pixels 0 and 2 and mask B marks 1 and 2, intersection marks only 2. Union marks all three. This applies set operations to grid positions.
Check alignment before combining
Equal array shape does not establish that both grids refer to the same crop or origin. Verify their coordinate mapping. Crop boundaries explain how origins can shift.[1][2]