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 [2016/12/09 08:23] – [Union of multiple ROIs] a bit of additions kota | documents:120206pyip_cooking:python_imagej_cookbook [2017/04/28 23:46] – [Regular Expression to get meta information from file name] kota | ||
---|---|---|---|
Line 101: | Line 101: | ||
Here is an example, using re package. To construct pattern, several web services are available such as: | Here is an example, using re package. To construct pattern, several web services are available such as: | ||
- | http:// | + | http:// |
+ | or\\ | ||
+ | https:// | ||
<code python linenums: | <code python linenums: | ||
Line 1729: | Line 1732: | ||
* [[http:// | * [[http:// | ||
* [[http:// | * [[http:// | ||
+ | |||
+ | ===== Plugin: Shape Smoothing ===== | ||
+ | |||
+ | Shape smoothing by reducing the number of Fourier descriptors. | ||
+ | The plugin page is [[http:// | ||
+ | The github page is [[https:// | ||
+ | |||
+ | <code python> | ||
+ | from ij import IJ | ||
+ | from de.biomedical_imaging.ij.shapeSmoothing import ShapeSmoothingUtil | ||
+ | |||
+ | # https:// | ||
+ | |||
+ | imp = IJ.getImage() | ||
+ | ss = ShapeSmoothingUtil() | ||
+ | ss.setBlackBackground(True) | ||
+ | # Relative proportion FDs (%) | ||
+ | thresholdValue = 2 | ||
+ | # FD in % or absolute number | ||
+ | thresholdIsPercentual = True | ||
+ | # If True, a table, containing all FDs, will be shown after processing | ||
+ | doOutputDescriptors = False | ||
+ | |||
+ | ss.fourierFilter(imp.getProcessor(), | ||
+ | </ | ||
===== Plugin: Auto Threshold ===== | ===== Plugin: Auto Threshold ===== |
documents/120206pyip_cooking/python_imagej_cookbook.txt · Last modified: 2022/10/16 07:12 by kota