We want to be able to select an roi in the image, and automatically have
the corresponding row in the results table selected using the API in a Python script. Our idea is to select the roi, use the equivalent of Roi.contains() (which we found in the macro language) to find the roi in the roi manager and in the results table. We have the following questions: 1. Was is the API equivalent of Roi.contains()? (We will also try to find it in the source, but probably someone knows this offhand) 2. How can we scroll the results table to the required row (when it is outside of the window area)? 3. Is there something out there that already does this? Thanks in advance. --aryeh -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
> On May 8, 2018, at 3:45 AM, Aryeh Weiss <[hidden email]> wrote:
> > We want to be able to select an roi in the image, and automatically have the corresponding row in the results table selected using the API in a Python script. Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an overlay created by Measure (with “Add to overlay" enabled), or the particle analyzer, selects the corresponding row in the "Results" table. This also works in the ROI Manager after using the Image>Overlay>To ROI Manager command. -wayne > Our idea is to select the roi, use the equivalent of Roi.contains() (which we found in the macro language) to find the roi in the roi manager and in the results table. We have the following questions: > > 1. Was is the API equivalent of Roi.contains()? (We will also try to find it in the source, but probably someone knows this offhand) > > 2. How can we scroll the results table to the required row (when it is outside of the window area)? > > 3. Is there something out there that already does this? > > Thanks in advance. > --aryeh > > -- > Aryeh Weiss > Faculty of Engineering > Bar Ilan University > Ramat Gan 52900 Israel > > Ph: 972-3-5317638 > FAX: 972-3-7384051 > > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Thank you for working on this.
On 10/05/2018 8:00, Wayne Rasband wrote: >> On May 8, 2018, at 3:45 AM, Aryeh Weiss <[hidden email]> wrote: >> >> We want to be able to select an roi in the image, and automatically have the corresponding row in the results table selected using the API in a Python script. > Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an overlay created by Measure (with “Add to overlay" enabled), or the particle analyzer, selects the corresponding row in the "Results" table. This also works in the ROI Manager after using the Image>Overlay>To ROI Manager command. > > -wayne I updated, but I do not understand how to use the feature. I ran the particle analyzer on blobs, and created an ROI set and a results table. When show-all and labels are selected, I can click on the ROI label and select it in the ROI manager (this also was true earlier). However, I doing this, or selecting an ROI in the ROI manager, does not select anything in the results table. Also, what is the API equivalent of the macro command ROI.contains()? Best regards --aryeh > >> Our idea is to select the roi, use the equivalent of Roi.contains() (which we found in the macro language) to find the roi in the roi manager and in the results table. We have the following questions: >> >> 1. Was is the API equivalent of Roi.contains()? (We will also try to find it in the source, but probably someone knows this offhand) >> >> 2. How can we scroll the results table to the required row (when it is outside of the window area)? >> >> 3. Is there something out there that already does this? >> >> Thanks in advance. >> --aryeh >> >> -- >> Aryeh Weiss >> Faculty of Engineering >> Bar Ilan University >> Ramat Gan 52900 Israel >> >> Ph: 972-3-5317638 >> FAX: 972-3-7384051 >> >> >> -- >> ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Wayne Rasband-2
On Thursday, 10 May 2018 06:00:10 BST you wrote:
> Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an > overlay created by Measure (with “Add to overlay" enabled), or the particle > analyzer, selects the corresponding row in the "Results" table. This also > works in the ROI Manager after using the Image>Overlay>To ROI Manager > command. Hi, maybe I am doing something wrong, but it does not seem to work under linux. If I select a ROI in the image, it selects the right ROI in the ROIManager, but it does not select any row in the Results table. Cheers Gabriel -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
> On May 10, 2018, at 7:51 AM, Gabriel Landini <[hidden email]> wrote: > > On Thursday, 10 May 2018 06:00:10 BST you wrote: >> Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an >> overlay created by Measure (with “Add to overlay" enabled), or the particle >> analyzer, selects the corresponding row in the "Results" table. This also >> works in the ROI Manager after using the Image>Overlay>To ROI Manager >> command. > > Hi, maybe I am doing something wrong, but it does not seem to work under > linux. > If I select a ROI in the image, it selects the right ROI in the ROIManager, > but it does not select any row in the Results table. The ROIs need to be in an overlay and they need to have been added to the overlay by the “Measure” command with “Add to overlay” enabled in Analyze>Set Measurements (see attached a screenshot). -wayne -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html Clipboard.png (364K) Download Attachment |
On Thursday, 10 May 2018 16:37:57 BST [hidden email] wrote:
> The ROIs need to be in an overlay and they need to have been added to the > overlay by the “Measure” command with “Add to overlay” enabled in > Analyze>Set Measurements (see attached a screenshot). Oh, I see, thanks for the further example. Yes that works. Best wishes, Gabrieo -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
In reply to this post by Aryeh Weiss
> On May 10, 2018, at 4:26 AM, Aryeh Weiss <[hidden email]> wrote: > > Thank you for working on this. > > On 10/05/2018 8:00, Wayne Rasband wrote: >>> On May 8, 2018, at 3:45 AM, Aryeh Weiss <[hidden email]> wrote: >>> >>> We want to be able to select an roi in the image, and automatically have the corresponding row in the results table selected using the API in a Python script. >> Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an overlay created by Measure (with “Add to overlay" enabled), or the particle analyzer, selects the corresponding row in the "Results" table. This also works in the ROI Manager after using the Image>Overlay>To ROI Manager command. >> >> -wayne > I updated, but I do not understand how to use the feature. I ran the particle analyzer on blobs, and created an ROI set and a results table. When show-all and labels are selected, I can click on the ROI label and select it in the ROI manager (this also was true earlier). However, I doing this, or selecting an ROI in the ROI manager, does not select anything in the results table. In the particle analyzer dialog box, select “Overlay” in “Show:” and uncheck “Add to Manager” (see attached screenshot). In yesterday’s daily build (1.52c4), you also had to enable “Add to overlay” in Analyze>Set Options. This is not necessary in the latest daily build (1.52c6). > Also, what is the API equivalent of the macro command ROI.contains()? It is roi.contains(x,y). -wayne > Best regards > --aryeh >> >>> Our idea is to select the roi, use the equivalent of Roi.contains() (which we found in the macro language) to find the roi in the roi manager and in the results table. We have the following questions: >>> >>> 1. Was is the API equivalent of Roi.contains()? (We will also try to find it in the source, but probably someone knows this offhand) >>> >>> 2. How can we scroll the results table to the required row (when it is outside of the window area)? >>> >>> 3. Is there something out there that already does this? >>> >>> Thanks in advance. >>> --aryeh -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html Screenshot.png (331K) Download Attachment |
Thank you - now I get it.
On 10/05/2018 19:32, Wayne Rasband wrote: >> On May 10, 2018, at 4:26 AM, Aryeh Weiss <[hidden email]> wrote: >> >> Thank you for working on this. >> >> On 10/05/2018 8:00, Wayne Rasband wrote: >>>> On May 8, 2018, at 3:45 AM, Aryeh Weiss <[hidden email]> wrote: >>>> >>>> We want to be able to select an roi in the image, and automatically have the corresponding row in the results table selected using the API in a Python script. >>> Update to the latest ImageJ daily build (1.52c4) and activating an ROI in an overlay created by Measure (with “Add to overlay" enabled), or the particle analyzer, selects the corresponding row in the "Results" table. This also works in the ROI Manager after using the Image>Overlay>To ROI Manager command. >>> >>> -wayne >> I updated, but I do not understand how to use the feature. I ran the particle analyzer on blobs, and created an ROI set and a results table. When show-all and labels are selected, I can click on the ROI label and select it in the ROI manager (this also was true earlier). However, I doing this, or selecting an ROI in the ROI manager, does not select anything in the results table. > In the particle analyzer dialog box, select “Overlay” in “Show:” and uncheck “Add to Manager” (see attached screenshot). In yesterday’s daily build (1.52c4), you also had to enable “Add to overlay” in Analyze>Set Options. This is not necessary in the latest daily build (1.52c6). > > > >> Also, what is the API equivalent of the macro command ROI.contains()? > It is roi.contains(x,y). > > -wayne > >> Best regards >> --aryeh >>>> Our idea is to select the roi, use the equivalent of Roi.contains() (which we found in the macro language) to find the roi in the roi manager and in the results table. We have the following questions: >>>> >>>> 1. Was is the API equivalent of Roi.contains()? (We will also try to find it in the source, but probably someone knows this offhand) >>>> >>>> 2. How can we scroll the results table to the required row (when it is outside of the window area)? >>>> >>>> 3. Is there something out there that already does this? >>>> >>>> Thanks in advance. >>>> --aryeh > > -- > ImageJ mailing list: http://imagej.nih.gov/ij/list.html > -- Aryeh Weiss Faculty of Engineering Bar Ilan University Ramat Gan 52900 Israel Ph: 972-3-5317638 FAX: 972-3-7384051 -- ImageJ mailing list: http://imagej.nih.gov/ij/list.html |
Free forum by Nabble | Edit this page |