User Tools

Site Tools



This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
documents:120206pyip_cooking:python_imagej_cookbook [2017/12/03 06:08]
kota [Automatic Brightness/Contrast Button] human language explanation added
documents:120206pyip_cooking:python_imagej_cookbook [2018/07/19 07:43] (current)
kota [Plugin: LOCI BioFormats, Replacing OME-TIFF XML]
Line 1309: Line 1309:
 <code python linenums:​1>​ <code python linenums:​1>​
 +from ij import IJ, ImagePlus
 from ij.plugin.filter import ParticleAnalyzer as PA from ij.plugin.filter import ParticleAnalyzer as PA
 +from ij.measure import ResultsTable
 imp = IJ.getImage() imp = IJ.getImage()
Line 1519: Line 1522:
 cm.setPointSize(3) cm.setPointSize(3)
 </​code>​ </​code>​
-===== Plugin: LOCI BioFormats, Replacing OME-TIFF XML =====+===== Plugin: LOCI BioFormats ​===== 
 +==== Importing CZI file ==== 
 +<code python linenums:​1>​ 
 +from loci.plugins import BF 
 +from import ImporterOptions 
 +filepath = "/​path/​to/​image/​my.czi"​ 
 +# Options for Bioformats pluginincludeing the image path 
 +options = ImporterOptions() 
 +fullimps = BF.openImagePlus(options) 
 +#fullimps now holds multiple images contained within the czi file.  
 +# open the first one.  
 +See here for more on metadata parsing and so on: [[https://​​ctrueden/​6282856|]] 
 +==== Replacing OME-TIFF XML ====
 <code python linenums:​1>​ <code python linenums:​1>​
documents/120206pyip_cooking/python_imagej_cookbook.1512310080.txt.gz · Last modified: 2017/12/03 06:08 by kota