Skip to content

Commit 9ed81b1

Browse files
authored
Merge pull request #6 from imglib/refactor
Refactor classes
2 parents b281d28 + 5fe3b0c commit 9ed81b1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+731
-2110
lines changed

MIGRATION.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Migrating from [imglib/imglib2-ij](https://github.com/imglib/imglib2-ij)
2+
3+
Unfortunately, `imglib/imglib2-ij` cannot be used with Java 11+, because of the package conflicts with `imglib/imglib2`. If you try, you'll see build errors like:
4+
```
5+
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.8.1:compile (default-compile) on project scijava-legacy: Compilation failure: Compilation failure:
6+
[ERROR] error: the unnamed module reads package net.imglib2.img from both net.imglib2 and net.imglib2.img
7+
[ERROR] error: the unnamed module reads package net.imglib2.display.projector from both net.imglib2 and net.imglib2.img
8+
[ERROR] error: module net.imglib2 reads package net.imglib2.img from both net.imglib2 and net.imglib2.img
9+
[ERROR] error: module net.imglib2 reads package net.imglib2.display.projector from both net.imglib2 and net.imglib2.img
10+
[ERROR] error: module org.slf4j reads package net.imglib2.img from both net.imglib2 and net.imglib2.img
11+
[ERROR] error: module org.slf4j reads package net.imglib2.display.projector from both net.imglib2 and net.imglib2.img
12+
```
13+
14+
To resolve these errors (and for organization) this library changed many names. Below you'll find commonly-used functions from `imglib/imglib2-ij`, as well as their drop-in replacements from `imglib/imglib2-imagej`:
15+
16+
**`net.imglib2.img.display.imagej.ImgToVirtualStack.wrap*` have been renamed to `net.imglib2.imagej.ImgPlusToImagePlus.wrap*`**.
17+
**`net.imglib2.img.VirtualStackAdapter.wrap*` have been renamed to `net.imglib2.imagej.ImagePlusToImgPlus.wrap*`**.
18+
**`net.imglib2.img.ImagePlusAdapter.wrap*` have been renamed to `net.imglib2.imagej.ImagePlusToImg.wrap*`**.
19+
**`net.imglib2.img.ImageJFunctions.wrap*(ImagePlus)` have been renamed to `net.imglib2.imagej.ImagePlusToImg.wrap*`**.
20+
**`net.imglib2.img.display.imagej.ImageJFunctions.wrap*(RandomAccessibleInterval, ...)` have been renamed to `net.imglib2.imagej.RAIToImagePlus.wrap*`**.
21+
22+
If you require additional functionality that is not yet in this library, please file an issue!

0 commit comments

Comments
 (0)