Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ImageCalculator.run method not accepting options #10

Open
ctrueden opened this issue Jun 25, 2015 · 0 comments
Open

ImageCalculator.run method not accepting options #10

ctrueden opened this issue Jun 25, 2015 · 0 comments

Comments

@ctrueden
Copy link
Member

@mparada wrote:

ImageCalculator method run does not accept options. OTH, the deprecated method calculate does.

from ij import IJ
from ij.plugin import ImageCalculator

IJ.run("Blobs (25K)");
imp = IJ.getImage();

# this doesn't work
ImageCalculator().run("Subtract create", imp, imp) 

# these work
ImageCalculator().run("Subtract", imp, imp) # without options
ImageCalculator().calculate("Subtract create", imp, imp) # deprecated method

Migrated-From: scijava/scripting-jython#5

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant