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 #2024 (new defect)

Opened 2013-11-11T12:23:48-06:00

Simplify design of binary mask plugins

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

Description

We want to be able to construct scripts that can encompass the various make binary iterations. In IJ1 there are four ways to deal with binary images (selection to mask, threshold apply button, make binary, convert to mask). They all do subtly different things. They could likely be scripted from a few building blocks.

Example subtasks:
1) get a PointSet representing pixels inside (or outside) mask using curr thresh overlay
2) get a PointSet representing pixels inside (or outside) mask using a specified ThresholdMethod
3) set a Dataset's FG pixels to 1 for points inside (or even outside) given PointSet
4) set a Dataset's BG pixels to 0 for points inside (or even outside) given PointSet
5) set the target Dataset as self
6) set target Dataset as another Dataset

Then we can write Javascript scripts that combine these to create the various methods of making masks