This is a read-only version of imagej.net, available during the transition to the new website, which you can preview here.
Please direct any questions or issues to this Image.sc Forum thread.
Thank you for your patience as we improve the website!

ImgLib2 FAQ

ImgLib2
Topics
Overview
Benchmarks
FAQ
Tutorials
Getting Started
Accessors
Accessibles
ImgLib2 Examples
Introductory Workshop
Advanced Programming Workshop
Into ImgLib - Generic Image Processing in Java
Creating Imglib2 images in MATLAB
Development
Developing ImgLib2
ImgLib2 Discussion

What is ImgLib2 anyway?

It is a library that helps you to implement algorithms for multi-dimensional data processing. The idea is that you can concentrate on the essence of your algorithm rather than syntactic sugar. It is possible to implement an algorithm without specifying what the image's data type is, how many dimensions it has, and how the image is stored.

ImgLib2 is also the foundation of the ImageJ2 data model.

How do I migrate my ImgLib1 code to ImgLib2?

There is some rudimentary documentation, but you will most likely need to ask more detailed questions on the ImageJ Forum.

How to create a new image from scratch?

int w = 768, h = 512, timepoints = 20;
Img<FloatType> img = ArrayImgs.floats(w, h, timepoints);