[ome-devel] roiService returns incorrect roi position
Wood, Christopher
CJW at stowers.org
Thu Sep 8 21:11:40 BST 2011
Hi,
**Omero 4.3.1
I am creating ROIs in insight and then using the python API to get the position of the ROI;I copied mostly from the examples in the scripts.
(I am running this on client computer)
roiService = conn.getRoiService()
result = roiService.findByImage(imageId, None)
for roi in result.rois:
for shape in roi.copyShapes():
print shape.id.val
print shape.getX().getValue()
print shape.getY().getValue()
(This also happens with an ellipse)
After creating the ROI and running this, it prints the correct information. If I move the ROI (and save) and run this, it still prints original values.
This also occurs in the ROI Split Figure script (running on the server). After moving the ROI the created image is still for the original position of the ROI.
In Insight, the position of the ROI is always where I last moved it to - even after closing and restarting.
Thanks
Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openmicroscopy.org.uk/pipermail/ome-devel/attachments/20110908/5a40bfbb/attachment.html>
More information about the ome-devel
mailing list