Skip to content, Skip to search

Changes

Jython Scripting

102 bytes added, 02:06, 28 August 2018
Using openCV in Jython
from ijopencv.ij import ImagePlusMatConverter
from ijopencv.opencv import MatImagePlusConverter
from ij import ImagePlus
# Convert ImagePlus (actually the contained ImageProcessor) to Matrix object
# Convert Matrix object to ImageProcessor
mat2imp mat2ip = MatImagePlusConverter()NewIP = mat2impmat2ip.toImageProcessor(ImMat)NewImp = ImagePlus("Matrix converted back to ImagePlus", NewIP)print NewIPNewImP
</source>
Emailconfirmed
91
edits