Ticket #1249 (closed defect: fixed)

Opened 7 years ago

Last modified 7 years ago

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 7 years ago 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.

Note: See TracTickets for help on using tickets.