imagej / imagej/ImageJ

ImageCalculator.run method not accepting options

Open
#10 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
786
Forks
267
PR merge metrics
No merged PRs in 30d

Description

@mparada wrote:

> `ImageCalculator` method `run` does not accept options. OTH, the deprecated method `calculate` does.
>
> ``` python
> 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

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the Java implementation of ImageCalculator.run and compare its handling of options with the deprecated calculate method. Reproduce the Python examples from the issue, then verify that run accepts the “Subtract create” options and behaves consistently with calculate.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.