-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #551 from saalfeldlab/feat/1.6.0
Feat/1.6.0
- Loading branch information
Showing
41 changed files
with
647 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 12 additions & 0 deletions
12
...g/janelia/saalfeldlab/paintera/stream/HighlightingStreamConverterVolatileIntegerType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
package org.janelia.saalfeldlab.paintera.stream; | ||
|
||
import net.imglib2.Volatile; | ||
import net.imglib2.type.numeric.IntegerType; | ||
|
||
public class HighlightingStreamConverterVolatileIntegerType<I extends IntegerType<I>, V extends Volatile<I>> extends HighlightingStreamConverterVolatileType<I, V> { | ||
|
||
public HighlightingStreamConverterVolatileIntegerType(final AbstractHighlightingARGBStream stream) { | ||
|
||
super(stream, new HighlightingStreamConverterIntegerType(stream)); | ||
} | ||
} |
22 changes: 3 additions & 19 deletions
22
...lia/saalfeldlab/paintera/stream/HighlightingStreamConverterVolatileLabelMultisetType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,12 @@ | ||
package org.janelia.saalfeldlab.paintera.stream; | ||
|
||
import net.imglib2.type.label.LabelMultisetType; | ||
import net.imglib2.type.label.VolatileLabelMultisetType; | ||
import net.imglib2.type.numeric.ARGBType; | ||
|
||
public class HighlightingStreamConverterVolatileLabelMultisetType extends HighlightingStreamConverter<VolatileLabelMultisetType> { | ||
public class HighlightingStreamConverterVolatileLabelMultisetType extends HighlightingStreamConverterVolatileType<LabelMultisetType, VolatileLabelMultisetType> { | ||
|
||
private final HighlightingStreamConverterLabelMultisetType nonVolatileConverter; | ||
public HighlightingStreamConverterVolatileLabelMultisetType(final AbstractHighlightingARGBStream stream) { | ||
|
||
super(stream); | ||
nonVolatileConverter = new HighlightingStreamConverterLabelMultisetType(stream); | ||
} | ||
|
||
public HighlightingStreamConverterLabelMultisetType getNonVolatileConverter() { | ||
return nonVolatileConverter; | ||
} | ||
|
||
@Override | ||
public void convert(final VolatileLabelMultisetType input, final ARGBType output) { | ||
|
||
final boolean isValid = input.isValid(); | ||
if (!isValid) { | ||
return; | ||
} | ||
nonVolatileConverter.convert(input.get(), output); | ||
super(stream, new HighlightingStreamConverterLabelMultisetType(stream)); | ||
} | ||
} |
29 changes: 29 additions & 0 deletions
29
...java/org/janelia/saalfeldlab/paintera/stream/HighlightingStreamConverterVolatileType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
package org.janelia.saalfeldlab.paintera.stream; | ||
|
||
import net.imglib2.Volatile; | ||
import net.imglib2.type.numeric.ARGBType; | ||
|
||
public abstract class HighlightingStreamConverterVolatileType<I, V extends Volatile<I>> extends HighlightingStreamConverter<V> { | ||
|
||
protected final HighlightingStreamConverter<I> nonVolatileConverter; | ||
|
||
public HighlightingStreamConverterVolatileType(AbstractHighlightingARGBStream stream, HighlightingStreamConverter<I> nonVolatileConverter) { | ||
|
||
super(stream); | ||
this.nonVolatileConverter = nonVolatileConverter; | ||
} | ||
|
||
public HighlightingStreamConverter<I> getNonVolatileConverter() { | ||
|
||
return nonVolatileConverter; | ||
} | ||
|
||
@Override public void convert(V input, ARGBType output) { | ||
|
||
final boolean isValid = input.isValid(); | ||
if (!isValid) { | ||
return; | ||
} | ||
getNonVolatileConverter().convert(input.get(), output); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.