NOTICE! This is a static HTML version of a legacy ImageJ Trac ticket.

The ImageJ project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Ticket #2022 (closed defect: fixed)

Opened 2013-11-04T17:00:01-06:00

Last modified 2014-06-29T23:28:33-05:00

Null values should be allowed as inputs

Reported by: bdezonia Owned by: curtis
Priority: major Milestone: imagej2-b8-analysis
Component: Analysis Plugins Version:
Severity: serious Keywords:
Cc: Blocked By:
Blocking: #1457


The Process > Binary > Binarize plugin was written to allow flexible definition of binary images. One thing it does is allow one to optionally specify an input mask to continue to populate rather than hatching one every time. This allows constructions similar to IJ1 but a bit more flexibly.

Note that the Input Mask @Parameter field is marked as autofill false, required false, and persist false. However when you launch the command the inputMask dialog field defaults to the active dataset. It should not I think but rather it should default to null. The Binarize plugin would be happy if it had a null inputMask cuz then it would just hatch one as needed. However at the moment this is not possible. Defaulting to the active Dataset will nearly always make Binarize unhappy.

Change History

comment:1 Changed 2014-06-29T23:28:33-05:00 by curtis

  • Status changed from new to closed
  • Resolution set to fixed

Actually, null values are allowed as inputs. The problem here is actually that the Active*Preprocessor classes did not ignore inputs marked with autoFill=false as they should have been doing. Fixed in  86f29b42 of scijava-common.