Skip to content
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 4 additions & 5 deletions src/main/java/qupath/ext/imglib2/AccessibleScaler.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import net.imglib2.realtransform.RealViews;
import net.imglib2.realtransform.Scale2D;
import net.imglib2.realtransform.Translation2D;
import net.imglib2.type.NativeType;
import net.imglib2.type.numeric.NumericType;
import net.imglib2.view.Views;

Expand Down Expand Up @@ -40,7 +39,7 @@ private AccessibleScaler() {
* @throws IllegalArgumentException if the input interval has at least one minimum different from 0, if the provided scale is less
* than or equal to 0, or if the input interval has less than two dimensions
*/
public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterval<T> scaleWithLinearInterpolation(
public static <T extends NumericType<T>> RandomAccessibleInterval<T> scaleWithLinearInterpolation(
RandomAccessibleInterval<T> input,
double scale
) {
Expand All @@ -59,7 +58,7 @@ public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterva
* @throws IllegalArgumentException if the input interval has at least one minimum different from 0, if the provided scale is less
* than or equal to 0, or if the input interval has less than two dimensions
*/
public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterval<T> scaleWithNearestNeighborInterpolation(
public static <T> RandomAccessibleInterval<T> scaleWithNearestNeighborInterpolation(
RandomAccessibleInterval<T> input,
double scale
) {
Expand All @@ -79,7 +78,7 @@ public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterva
* @throws IllegalArgumentException if the input interval has at least one minimum different from 0, if the provided scale is less
* than or equal to 0, or if the input interval has less than two dimensions
*/
public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterval<T> scale(
public static <T> RandomAccessibleInterval<T> scale(
RandomAccessibleInterval<T> input,
double scale,
InterpolatorFactory<T, RandomAccessible<T>> interpolatorFactory
Expand All @@ -104,7 +103,7 @@ public static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterva
}
}

private static <T extends NativeType<T> & NumericType<T>> RandomAccessibleInterval<T> scaleWithoutChecks(
private static <T> RandomAccessibleInterval<T> scaleWithoutChecks(
RandomAccessibleInterval<T> input,
double scale,
Scale2D scale2D,
Expand Down
Loading