imagej / imagej-common

ImageJ core data model
https://imagej.net/libs/imagej-common
BSD 2-Clause "Simplified" License
10 stars 18 forks source link

Add BigInteger and BigDecimal numerical types #35

Open ctrueden opened 9 years ago

ctrueden commented 9 years ago

The ImgLib2 library has type-agnostic support for numerical data processing. As such, it would be great to have numerical types based on Java's BigInteger and BigDecimal, for arbitrary-precision integer- and real-valued numbers, respectively.

Implementing this feature will first require the types to exist within ImgLib2. Then we will need to write additional converter plugins (for the Image > Type menu) as well as ensure that ImageJ2's core numerical commands are well-tested with the new types. Right now, many plugins "cheat" by operating on doubles, which would defeat the purpose of the new types.

Migrated-From: http://trac.imagej.net/ticket/1653

ctrueden commented 9 years ago

Note that the initial version of the ImgLib2 types were finished last year:

Discussion surrounding FloatingType is still pending (https://github.com/imglib/imglib2/issues/24).

What remains for this issue is expose the types within ImageJ (at least the modern interfaces, if not the legacy one too). This will probably entail wrapping the types as DataType plugins.