mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-09-04 12:50:45 +02:00
InclusiveROI comment
This commit is contained in:
@@ -114,7 +114,7 @@ static inline InclusiveROI mirrorXY(InclusiveROI r, ssize_t width,
|
||||
return {mirrorX(mirrorY(r, height), width)};
|
||||
}
|
||||
|
||||
// intersection / union
|
||||
// intersection
|
||||
static inline InclusiveROI intersect(InclusiveROI const &a,
|
||||
InclusiveROI const &b) {
|
||||
InclusiveROI r;
|
||||
@@ -131,6 +131,7 @@ static inline InclusiveROI intersect(InclusiveROI const &a,
|
||||
return r;
|
||||
}
|
||||
|
||||
// union
|
||||
static inline InclusiveROI unite(InclusiveROI const &a, InclusiveROI const &b) {
|
||||
// Horizontal union: same y-range
|
||||
if (a.ymin == b.ymin && a.ymax == b.ymax) {
|
||||
|
||||
Reference in New Issue
Block a user