Add the ImgLib1 examples from Stephan Preibisch

These were used in the ImgLib1 workshop at the IJ conference in 2009.

They do not compile yet, as RealSum needs to be reimplemented under BSD
license.

While at it, move the files into a Maven-type directory structure and add
a pom.xml for Maven to use.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Add a stupid reimplementation of RealSum

Now the examples compile.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Remove DOS-line endings

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Fix whitespace

... as performed by my good ole' friend, git rebase --whitespace=fix.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Rename and move the sandbox Example

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Big move

Move the IJ2 examples into the appropriate package. While at it, move
RealSum, too.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: fix javadoc

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Force the IJ2 examples' dependency to be ImgLib2

This breaks compilation, that is for sure.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: remove obsolete imports

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: RealType is now in net.imglib2.type.numeric

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: ImagePlusAdapter now lives in net.imglib2.img

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: ImageJFunctions moved to net.imglib2.img.display.imagej

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: displayAsVirtualStack() is now show()

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Image is now Img

... and lives in net.imglib2.img.

The reason for this rename is two-fold:

1) we wanted to avoid clashes with existing Image classes (most notably,
   AWT's), and

2) it is a cute reminder that this library is called ImgLib.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: LOCI is now ImgOpener

... and it lives in net.imglib2.io.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: openLOCI() is now openImg()

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: openImg() is no longer static

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: ArrayContainerFactory is now ArrayImgFactory<T>

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: Img lacks the getDisplay() method

... therefore we have to jump through hoops, because ImageJFunctions'
show() method does not reset the display range.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
ij2-examples: what happened to openLOCIFloatType?

This change compiles, but it does not work: a ClassCastException is
thrown. There is no convenience method available, this functionality
just vanished. WTF.

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>