You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Icy imaging
Hi all,
I am using the Spot Detector in a Python script.
Everything works fine, and I would like to add the results to the source Sequence, as ROIs (so that they can be saved in the Icy XML file).
Is there a method that does automagically that? I could iterate through the list of detections and make a ROI for each, but I was wondering if you did not write something that does it at once already.
Fabrice de Chaumont
unread,
Feb 8, 2018, 11:50:35 AM2/8/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Icy imaging
Hi !
If you can access the detection already (or the detectionResult ) you can process it with a detection to ROI (static) call:
if ( roi3D.getSizeZ() == 1 ) // check if the sizeZ is 1 and convert to ROI2D { int z = (int)roi3D.getPosition().getZ(); BooleanMask2D mask = roi3D.getBooleanMask2D(z, true ); ROI2DArea roi2D = new ROI2DArea( mask ); roi2D.setZ( roi3D.getPosition().z ); roi = roi2D; }else { roi = roi3D; }
roiList.add( roi ); // set t for ROI. roi.setPosition5D( new Point5D.Double( roi.getPosition5D().getX(), roi.getPosition5D().getY(), roi.getPosition5D().getZ(), spot.getT(), roi.getPosition5D().getC() ) ); roi.setName("spot #"+detectionList.indexOf( spot )); }
return roiList;
Jean-Yves Tinevez
unread,
Feb 8, 2018, 11:58:39 AM2/8/18
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Icy imaging
On Thursday, February 8, 2018 at 5:50:35 PM UTC+1, Fabrice de Chaumont wrote:
Hi !
If you can access the detection already (or the detectionResult ) you can process it with a detection to ROI (static) call: