Xi-CAM / Xi-cam.gui

0 stars 9 forks source link

Update PolygonROI poly_mask() #6

Closed ihumphrey closed 5 years ago

ihumphrey commented 5 years ago
PolygonROI
  • update PolygonROI documentation
  • poly_mask() now returns a mask that is padded and trimmed into image space, and its shape matches the image item's shape
    • previous behavior returned a mask array for the polygon, then stretched it into the image's shape
    • unused `shape` argument removed
PyQtGraph PolygonROI patch
  • Patched PolygonROI to use returnMappedCoords kwarg