User Tools

Site Tools


documents:120206pyip_cooking:python_imagej_cookbook

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
documents:120206pyip_cooking:python_imagej_cookbook [2018/07/19 07:43]
kota [Plugin: LOCI BioFormats, Replacing OME-TIFF XML]
documents:120206pyip_cooking:python_imagej_cookbook [2018/08/19 18:32] (current)
kota [Channel Splitter]
Line 772: Line 772:
 imps[0].show() # Channel 1 imps[0].show() # Channel 1
 imps[1].show() # Channel 2 imps[1].show() # Channel 2
 +</​code>​
 +
 +==== Channel Merge ====
 +
 +[Image > Color > Merge Channels...]
 +
 +<code python linenums:​1>​
 +from ij import ImagePlus
 +from ij.plugin import RGBStackMerge,​ RGBStackConverter
 +
 +impc1 = ImagePlus("​path/​to/​image.tif"​)
 +impc2 = ImagePlus("​path/​to/​image.tif"​)
 +
 +mergeimp = RGBStackMerge.mergeChannels([impc2,​ None, impc1, None, None, None, None], True)
 +
 +# convert the composite image to the RGB image
 +RGBStackConverter.convertToRGB(mergeimp)
 +
 +mergeimp.show()
 </​code>​ </​code>​
 ==== Z projection ==== ==== Z projection ====
documents/120206pyip_cooking/python_imagej_cookbook.1532011413.txt.gz ยท Last modified: 2018/07/19 07:43 by kota