objects wit distinct grey values-outline?

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

objects wit distinct grey values-outline?

Matthias Kirsch
Dear all,

I have objects in a segemented image, each of them having a distinct grey level (see images below): How do I get them outlined individually.
Thanks so much for any sugegstion.
Regards
Matthias
Reply | Threaded
Open this post in threaded view
|

Re: objects wit distinct grey values-outline?

Jerome Mutterer-3
Hi Matthias,
assuming your grey level image is 8-bit, you could run something like the
following macro:

for (i=0;i<256;i++) {
  setThreshold(i, i);
  run("Create Selection");
  if (selectionType>0){
    roiManager("Add");
    run ("Select None");
  }
}

Sincerely,
Jerome



On 11 November 2013 18:45, Matthias Kirsch <[hidden email]> wrote:

>
> Dear all,
>
> I have objects in a segemented image, each of them having a distinct grey
> level (see images below): How do I get them outlined individually.
> Thanks so much for any sugegstion.
> Regards
> Matthias <http://imagej.1557.x6.nabble.com/file/n5005533/color.jpg>
> <http://imagej.1557.x6.nabble.com/file/n5005533/grey.jpg>
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/objects-wit-distinct-grey-values-outline-tp5005533.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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

Re: objects wit distinct grey values-outline?

Matthias Kirsch
Hi Jerome,

thank you so much!
Regards
Matthias

Am 11.11.2013 21:12, schrieb Jerome Mutterer-3 [via ImageJ]:
Hi Matthias,
assuming your grey level image is 8-bit, you could run something like the
following macro:

for (i=0;i<256;i++) {
  setThreshold(i, i);
  run("Create Selection");
  if (selectionType>0){
    roiManager("Add");
    run ("Select None");
  }
}

Sincerely,
Jerome



On 11 November 2013 18:45, Matthias Kirsch <[hidden email]> wrote:

>
> Dear all,
>
> I have objects in a segemented image, each of them having a distinct grey
> level (see images below): How do I get them outlined individually.
> Thanks so much for any sugegstion.
> Regards
> Matthias <http://imagej.1557.x6.nabble.com/file/n5005533/color.jpg>
> <http://imagej.1557.x6.nabble.com/file/n5005533/grey.jpg>
>
>
>
> --
> View this message in context:
http://imagej.1557.x6.nabble.com/objects-wit-distinct-grey-values-outline-tp5005533.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html

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



If you reply to this email, your message will be added to the discussion below:
http://imagej.1557.x6.nabble.com/objects-wit-distinct-grey-values-outline-tp5005533p5005535.html
To unsubscribe from objects wit distinct grey values-outline?, click here.
NAML