Skip to content

Commit

Permalink
Replace deprecated call
Browse files Browse the repository at this point in the history
  • Loading branch information
rimadoma committed May 14, 2020
1 parent 62ec832 commit 2f7e3c5
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions src/main/java/net/imagej/ops/morphology/outline/Outline.java
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
import net.imglib2.outofbounds.OutOfBounds;
import net.imglib2.type.BooleanType;
import net.imglib2.type.logic.BitType;
import net.imglib2.util.Util;
import net.imglib2.view.ExtendedRandomAccessibleInterval;
import net.imglib2.view.Views;

Expand Down Expand Up @@ -103,7 +102,7 @@ public void compute(final RandomAccessibleInterval<B> input,
final RandomAccessibleInterval<BitType> output)
{
final ExtendedRandomAccessibleInterval<B, RandomAccessibleInterval<B>> extendedInput =
extendInterval(input);
Views.extendValue(input, excludeEdges);
final List<Future<?>> futures = new ArrayList<>();
final IterableInterval<B> iterable = Views.iterable(input);
final int cores = Runtime.getRuntime().availableProcessors();
Expand Down Expand Up @@ -159,14 +158,6 @@ private static <B extends BooleanType<B>> Runnable createTask(
};
}

private ExtendedRandomAccessibleInterval<B, RandomAccessibleInterval<B>>
extendInterval(RandomAccessibleInterval<B> interval)
{
final B type = Util.getTypeFromInterval(interval).createVariable();
type.set(in2());
return Views.extendValue(interval, type);
}

/** Checks if any element in the N-dimensional neighbourhood is background */
private static <B extends BooleanType<B>> boolean isAnyNeighborBackground(
final OutOfBounds<B> access, final long[] position)
Expand Down

0 comments on commit 2f7e3c5

Please sign in to comment.