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 #1045 (closed enhancement: fixed)

Opened 2012-03-05T10:30:38-06:00

Last modified 2012-03-07T12:53:58-06:00

Add source string metadata to ImgPlus

Reported by: curtis Owned by: bdezonia
Priority: major Milestone: imagej2-b1-initial
Component: ImgLib2 Version:
Severity: minor Keywords:
Cc: Blocked By:
Blocking: #547, #649

Description

For saving a file, it is nice to know where it came from. We should add a "String source" metadata field to ImgPlus, which gets populated by the ImgOpener, that the ImgSaver can then reference in case of File > Save to overwrite the same file. File > Save As would also update this field with the new filename.

Two parts to this:

  1. Add the field to ImgPlus
  2. Update ImgOpener to populate the field

Also, ticket #649 will utilize it as described above.

Change History

comment:1 Changed 2012-03-05T10:32:05-06:00 by curtis

  • Blocking 649 added

comment:2 Changed 2012-03-05T10:34:43-06:00 by curtis

  • Blocking 547 added

comment:3 Changed 2012-03-07T12:53:58-06:00 by bdezonia

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

ImgPlus updated with setSource() and getSource() in imglib commit 8e7af9
Added to DefaultDataset in ImageJ2 commit f856202eaab58f55c5a92c2f3e5784fd26e825a5