Exemple #1
0
from de.embl.cmci.seg import NucSegRitsukoProject as NSP
from ij import IJ
from ij import ImagePlus
imp = IJ.openImage("http://imagej.nih.gov/ij/images/blobs.gif");
#imp = IJ.openImage("http://imagej.nih.gov/ij/images/m51.zip");
imp = IJ.openImage('/Volumes/D/Julia20130201-/NucleusSegmentationStudy/20130320/L1CH2_maxp_300-374-6.tif')
nsp = NSP()
res = nsp.binarize(imp.getProcessor(), 0.1);
ImagePlus("result", res).show()

Exemple #2
0
from ij import IJ, ImagePlus, Prefs
from de.embl.cmci.seg import NucSegRitsukoProject
from ij.gui import Roi

#imp = IJ.getImage()
imp = IJ.openImage('/Users/miura/Dropbox/examples/blobsBInary.tif')
nrp = NucSegRitsukoProject();
#binimp = nrp.eliminateEdgeObjects(subip)
imp.show()
Prefs.blackBackground = True
binip = nrp.cleanEdge(imp)
binip.invertLut()
#ImagePlus("binimage", subip).show()
ImagePlus("binimage", binip).show()