I’m new to the community and am trying to use imagej in Python. I encounter the following error when trying to process my images using imagej commands:
1st arg can't be coerced to ij.ImagePlus, ij.macro.Interpreter
A previous post on this forum indicated that I needed to use the following to convert my file to an ImagePlus body first:
from net.imglib2.img.display.imagej import ImageJFunctions as IJF myImagePlus = IJF.wrap( myArrayImg, "myArrayImgTitle" )
I was able to locate an imglib2 jar file and connect it to intellij, but I cannot locate the wrap function. Has there been an update to the imglib2 structure? Any help is greatly appreciated.