Ticket #878 (accepted feature)

Opened 6 months ago

Last modified 5 days ago

Support "subtracting" ROIs

Reported by: dscho Owned by: dscho
Priority: blocker Milestone: imagej-2.0.0-beta3
Component: ij-core Version:
Severity: serious Keywords:
Cc: Blocked By: #1022
Blocking: #1010, #1143

Description

In ImageJ 1.x, you can hold down the Alt key when selecting a region which will _subtract_ the selected part from the current selection.

This requires a substantial extension of our current ROI framework.

Change History

comment:1 Changed 3 months ago by curtis

  • Blocking 285, 1010 added

comment:2 Changed 3 months ago by curtis

  • Type changed from defect to feature

comment:3 Changed 3 months ago by dscho

  • Priority changed from major to blocker

comment:4 Changed 3 months ago by dscho

  • Status changed from new to accepted

comment:5 Changed 3 months ago by dscho

  • Blocking 1022 added

comment:5 Changed 3 months ago by dscho

Unfortunately, JHotDraw does not offer any functionality like that, so most likely I will have to write code to generate a JHotDraw figure from an AWT GeneralPath and use AWT for the geometry operations.

comment:6 Changed 3 months ago by dscho

Progress: I found out how to convert a Java AWT-type Shape object (given its PathIterator) into a JHotDraw-type BezierPath.

Since JHotDraw depends on AWT's geometry classes anyway, we can now rely on java.awt.geom.Area to do the constructive area geometry (such as subtraction). We will also be able to use this to flatten multiple selections into one single composite one.

As always, progress can be seen in the Git repository (in this case, the 'roi-subtract' branch).

comment:7 Changed 2 months ago by dscho

The real problem seems to be that we need to add support for multi-path bezier RegionOfInterests to ImgLib2...

comment:8 Changed 2 months ago by dscho

And related to the lack of multi-path bezier ROIs in ImgLib2: there is no support for such a beast in JHotDrawCanvas either. So I'll do that, too.

comment:9 Changed 8 weeks ago by curtis

  • Blocking 1022 removed

comment:10 Changed 8 weeks ago by curtis

  • Blocked By 1022 added

(In #1022) Selection tool is successfully eliminated. Alt key will not work until subtracting ROIs works (see ticket #878). But there is nothing left to do for this specific ticket.

comment:10 Changed 7 weeks ago by curtis

  • Milestone changed from imagej-2.0-beta1 to imagej-2.0-beta2

Finishing this work will have to wait till beta2, as we are too short on time.

comment:11 Changed 5 days ago by curtis

  • Blocking 1143 added; 285 removed
Note: See TracTickets for help on using tickets.