I am trying to write my first script using jyton. I have some problems with the “Subtract background” command.
Currently the script looks as follows:
from ij.plugin.filter import BackgroundSubtracter
BackgroundSubtracter().rollingBallBackground(imp, 450, False, False, False, False, False)
In this fragment imp was obtained using the IJ.openImage function. I get the error message “1st arg can’t be coerced to ij.process.ImageProcessor”.
What am I doing wrong?