Skip to content

Commit f0fa11f

Browse files
committed
add constructor taking bpsline coefficients directly
1 parent 7c2c8f7 commit f0fa11f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/main/java/net/imglib2/algorithm/interpolation/randomaccess/BSplineCoefficientsInterpolatorFactory.java

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,18 @@ public BSplineCoefficientsInterpolatorFactory( final RandomAccessibleInterval<T>
173173
this( img, img, order, true, (S)new DoubleType() );
174174
}
175175

176+
public BSplineCoefficientsInterpolatorFactory(
177+
final RandomAccessibleInterval<S> coefficients,
178+
final int order,
179+
final boolean clipping,
180+
final OutOfBoundsFactory<? extends RealType<?>, ?> oobFactory )
181+
{
182+
this.order = order;
183+
this.clipping = clipping;
184+
this.coefficients = coefficients;
185+
this.oobFactory = oobFactory;
186+
}
187+
176188
@Override
177189
public BSplineCoefficientsInterpolator<S> create( RandomAccessible<T> f )
178190
{

0 commit comments

Comments
 (0)