Commutation of AND Operator for ShapeRois flawed?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Commutation of AND Operator for ShapeRois flawed?

Greg
Hi,

I have two ShapeRoi objects (say SR1 and SR2), which are basically elliptical stripes. So they are the result of the subtraction of a smaller EllipseRoi from a bigger EllipseRoi. Now I want to get rid of potential overlaps, so I do

overlap1 = SR1.and(SR2)

which looks sometimes weird. When I do

overlap2 = SR2.and(SR1)

I get different (so sometimes the correct) results! From my humble understanding of logical operators, overlap1 should be equal to overlap2 in any case. So maybe something goes wrong in the ShapeRoi internals or am I missing something here?

Greets,
Gregor