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 #1249 (closed defect: fixed)

Opened 2012-06-25T15:57:44-05:00

Last modified 2012-07-19T21:49:31-05:00

Improve ImgOpener usage of generics

Reported by: curtis Owned by: curtis
Priority: minor Milestone: imagej2-b4-plugins
Component: ImgLib2 Version:
Severity: minor Keywords:
Cc: Blocked By:
Blocking:

Description

The ImgOpener class in ImgLib2 has an openImg(String) method that returns an ImgPlus<T> but it is difficult for calling code to propagate the T parameter. We should look for a better way of dealing with the situation. One possibility currently lives on the imgopener-generics branch, though it would need some updates to work with the latest code on master.

Change History

comment:1 Changed 2012-07-19T21:49:31-05:00 by dscho

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

Steffi resolved this issue this week: it is now possible (at least on a soon-to-be merged topic branch) to open images as Img<RealType>. There are also convenience functions for Img<FloatType> and Img<UnsignedByteType>, the two most prevalent pixel types.