roi pixel mask shape #550
Labels
category: enhancement
improvements of code or code behavior
help wanted: good first issue
request for community contributions that are good for new contributors
Milestone
The
pixel_mask
argument ofPlaneSegmentation.add_roi
is currently allowed to be (n, (x,y,v)) where n is the number of pixels, x and y are the coordinates of the pixel, and v is the value. If you try to make an roi that is 3D: (n, (x,y,z,v)), there will be an error during theio.write
call. I would prefer if we allowed (n, (x,y,z,v)), since rois are sometimes defined in 3D and I think it will be tricky to define 3D rois in any other way. If for some reason we need to keep this only in a single plane, then I would at least like to catch this error on theadd_roi
call, not duringio.write
The text was updated successfully, but these errors were encountered: