Ticket #489 (closed enhancement: fixed)

Opened 9 years ago

Last modified 8 years ago

Add/Delete "Slice" in ImageJ2

Reported by: gharris Owned by: bdezonia
Priority: major Milestone: biweekly-2011: Jun-06 to Jun-17
Component: Data Model Version:
Severity: major Keywords:
Cc: Blocked By:
Blocking:

Description

Decide what a "slice" is and how to designate how to apply an add or delete operation sensibly.

Change History

comment:1 Changed 9 years ago by gharris

  • Milestone set to imagej-2.0-beta2

comment:2 Changed 9 years ago by bdezonia

Note that in the legacy layer we are supporting what IJ1 does. Thus if you have a 2x3x4 CZT stack of XY planes and you call a plugin that deletes a slice you get back a 1x23x1 CZT image of XY planes.

comment:3 Changed 9 years ago by bdezonia

Last comment not entirely accurate. Delete slice is sort of working now. IJ2 takes a 4x15 CZ stack and when deleting a slice turns it into a 4x14 stack (thus deleting 4 planes). This is likely just by accident.

Add slice is not working right now.

Probably best if we define our own plugins to replace a number of them in Image::Stacks menu (such as add slice, delete slice, next slice, prev slice, set slice).

comment:4 Changed 9 years ago by bdezonia

Add slice sort of works at the moment:

  • add slice to T1 Head (3D) -> new slice added at position 2 of stack
  • add slice to Organ of Corti (4D) any number of times 0> no changes

comment:5 Changed 8 years ago by bdezonia

  • Milestone changed from imagej-2.0-beta2 to biweekly-2011: Jun-06 to Jun-17

Wrote pure IJ2 Add Data and Delete Data plugins

comment:6 Changed 8 years ago by bdezonia

Wrote pure IJ2 Add Axis and Delete Axis plugins

comment:7 Changed 8 years ago by bdezonia

Wrote pure IJ2 Reorder Axes plugin. Needs testing. Some TODOs listed in ReorderAxes.java

Some things that could be done to completely replace IJ1's functionality:

  • setPosition (needs to be multidimensional and updates slider positions of UI)
  • next slice and previous slice (needs to cycle thru current dimension and wrap other dims at boundaries) Maybe we need to specify the current dim to cycle within.

comment:8 Changed 8 years ago by bdezonia

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

Implemented all plugins to replace add slice, delete slice, next slice, prev slice, and set slice. Finished with c7876a41c96570e82a483472b737f7ca71680d4b and 581bfaabb4c1c38a332707ca94deaa3d4a155e8f.

Note: See TracTickets for help on using tickets.