creating a multipoint selection - problem

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

creating a multipoint selection - problem

Jeremy Adler
The makeSelection(type,xcoord,ycoord) command fails to create a multipoint selection.
The code below is happy to create a segment line(type 6) but changing the type to a 10 (point) fails.

However an earlier version of ImageJ 1.51k - allows the creation of type10 multipoint selection.

roiManager("reset");
xArray=newArray(10,20,30,40,50,60);
yArray=newArray(40,90,120,7,55,56);
makeSelection(6, xArray, yArray);//segmented line
roiManager("Add");

makeSelection(10, xArray, yArray);//point
roiManager("Add");











När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: http://www.uu.se/om-uu/dataskydd-personuppgifter/

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: http://www.uu.se/en/about-uu/data-protection-policy

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: creating a multipoint selection - problem

Krs5
A far as I can see you have to use

makeSelection("point", xArray, yArray);

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
www.le.ac.uk/advanced-imaging-facility



-----Original Message-----
From: Jeremy Adler <[hidden email]>
Sent: 17 July 2019 10:28
To: [hidden email]
Subject: creating a multipoint selection - problem

The makeSelection(type,xcoord,ycoord) command fails to create a multipoint selection.
The code below is happy to create a segment line(type 6) but changing the type to a 10 (point) fails.

However an earlier version of ImageJ 1.51k - allows the creation of type10 multipoint selection.

roiManager("reset");
xArray=newArray(10,20,30,40,50,60);
yArray=newArray(40,90,120,7,55,56);
makeSelection(6, xArray, yArray);//segmented line roiManager("Add");

makeSelection(10, xArray, yArray);//point roiManager("Add");











När du har kontakt med oss på Uppsala universitet med e-post så innebär det att vi behandlar dina personuppgifter. För att läsa mer om hur vi gör det kan du läsa här: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.uu.se%2Fom-uu%2Fdataskydd-personuppgifter%2F&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C26a23a2e7d0949fd9d3208d70a9924b8%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C636989525200967807&amp;sdata=s7yO3Q5yK%2Fm0PDrgyC5VZYPDR6eAe1E4rCy0peEvGK8%3D&amp;reserved=0

E-mailing Uppsala University means that we will process your personal data. For more information on how this is performed, please read here: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.uu.se%2Fen%2Fabout-uu%2Fdata-protection-policy&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C26a23a2e7d0949fd9d3208d70a9924b8%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C636989525200977802&amp;sdata=LcXyUVtQ66oerim%2FVfhTccTHPQDw%2B%2BcY4d9fOT4mtbY%3D&amp;reserved=0

--
ImageJ mailing list: https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fimagej.nih.gov%2Fij%2Flist.html&amp;data=02%7C01%7Ckrs5%40leicester.ac.uk%7C26a23a2e7d0949fd9d3208d70a9924b8%7Caebecd6a31d44b0195ce8274afe853d9%7C0%7C0%7C636989525200977802&amp;sdata=rdCXa9TkjWmTCwDJnVPUPIncInXziRv1dtTPAWOpfiU%3D&amp;reserved=0

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: creating a multipoint selection - problem

Wayne Rasband-2
In reply to this post by Jeremy Adler
> On Jul 17, 2019, at 5:27 AM, Jeremy Adler <[hidden email]> wrote:
>
> The makeSelection(type,xcoord,ycoord) command fails to create a multipoint selection.
> The code below is happy to create a segment line(type 6) but changing the type to a 10 (point) fails.
>
> However an earlier version of ImageJ 1.51k - allows the creation of type10 multipoint selection.

This regression is fixed in the latest ImageJ daily build (1.52q24), or work around it by using

   makeSelection("point", xArray, yArray);

When using the “point” type you can add size, color and type properties, for example:

  newImage("New", "RGB ramp", 100, 100, 1);
  run("Set... ", "zoom=400");
  xpoints = newArray(10,20,30,40,50,60);
  ypoints = newArray(40,90,120,7,55,56);
  makeSelection("point small yellow hybrid",xpoints,ypoints);
  rename("small yellow hybrid"); wait(2000);
  makeSelection("point large yellow hybrid",xpoints,ypoints);
  rename("large yellow hybrid"); wait(2000);
  makeSelection("point extra large yellow hybrid",xpoints,ypoints);
  rename("extra large yellow hybrid"); wait(2000);
  makeSelection("point large red cross",xpoints,ypoints);
  rename("large red cross"); wait(2000);
  makeSelection("point extra large red cross",xpoints,ypoints);
  rename("extra large red cross"); wait(2000);
  makeSelection("point extra large white circle",xpoints,ypoints);
  rename("extra large white circle"); wait(2000);
  makeSelection("point extra large cyan dot label",xpoints,ypoints);
  rename("extra large cyan dot label");

-wayne


> roiManager("reset");
> xArray=newArray(10,20,30,40,50,60);
> yArray=newArray(40,90,120,7,55,56);
> makeSelection(6, xArray, yArray);//segmented line
> roiManager("Add");
>
> makeSelection(10, xArray, yArray);//point
> roiManager("Add");

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html