Create Mask source file

segmentation
Tags: #<Tag:0x00007fb87d7112f8>

#1

Hi to all,

I am looking for the source code of:

IJ.run(“Create Mask”, “”);

i.e. setting the 2 thresholds is ok but transforming the original image (8 bits) to obtain a new image composed of 0’s ans 255’s pixels.

Thanks for hints and answers

Alan


#2

Hi @Alan,

The search in FIji is super helpful for stuff like this:

Clicking on the “Source” button will take you to ij.plugin.Selection

I think this part:

does what you want.

John


#3

Actually, following the above, this is probably more immediately useful to you.


#4

Hi John,
Thanks for your help.
Alan