documents:120206pyip_cooking:python_imagej_cookbook
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
documents:120206pyip_cooking:python_imagej_cookbook [2018/12/18 22:50] – [Python + ImageJ, Fiji Cookbook] kota | documents:120206pyip_cooking:python_imagej_cookbook [2020/11/26 07:16] – [Plugin: MorpholibJ] connected component labeling added. kota | ||
---|---|---|---|
Line 221: | Line 221: | ||
print ff.getParent() | print ff.getParent() | ||
print ff.getName() | print ff.getName() | ||
+ | </ | ||
+ | ==== Loading a textfile as String ==== | ||
+ | |||
+ | <code python linenums: | ||
+ | path = "/ | ||
+ | with open(inpath, | ||
+ | data = myfile.read() | ||
+ | print data | ||
</ | </ | ||
Line 1911: | Line 1919: | ||
h-dome is useful for spot detection in a noisy background. [[https:// | h-dome is useful for spot detection in a noisy background. [[https:// | ||
- | < | + | <code:py> |
from de.unihalle.informatik.MiToBo.core.datatypes.images import MTBImage | from de.unihalle.informatik.MiToBo.core.datatypes.images import MTBImage | ||
from de.unihalle.informatik.MiToBo.morphology import HDomeTransform3D | from de.unihalle.informatik.MiToBo.morphology import HDomeTransform3D | ||
Line 1925: | Line 1933: | ||
</ | </ | ||
+ | |||
+ | ===== Plugin: MorphoLibJ ===== | ||
+ | |||
+ | ==== Connected Component 3D labeling ==== | ||
+ | |||
+ | < | ||
+ | from ij import IJ, ImagePlus | ||
+ | from inra.ijpb.binary import BinaryImages | ||
+ | |||
+ | imp = IJ.getImage() | ||
+ | |||
+ | connectivity = 6 | ||
+ | outbitDepth = 16 | ||
+ | outimp = BinaryImages.componentsLabeling(imp, | ||
+ | outimp.setTitle(imp.getShortTitle() + " | ||
+ | outimp.show() | ||
+ | </ | ||
+ | |||
Line 2024: | Line 2050: | ||
See explanation in [[http:// | See explanation in [[http:// | ||
+ | |||
+ | ===== JAVADOCS ===== | ||
+ | |||
+ | * 3D ImageJ Suite [[http:// | ||
+ | * [[https:// | ||
+ | * [[https:// | ||
+ | * 3D Viewer [[http:// | ||
+ | * MultistackReg [[http:// | ||
====== Discussions? | ====== Discussions? |
documents/120206pyip_cooking/python_imagej_cookbook.txt · Last modified: 2022/10/16 07:12 by kota