Skip to content

Commit b6c5a01

Browse files
committed
Rename RichardsonLucyF
1 parent 48ffeb4 commit b6c5a01

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

scijava-ops-image/src/main/java/org/scijava/ops/image/deconvolve/RichardsonLucyF.java renamed to scijava-ops-image/src/main/java/org/scijava/ops/image/deconvolve/PadAndRichardsonLucy.java

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
* @param <C>
6262
* @implNote op names='deconvolve.richardsonLucy', priority='100.'
6363
*/
64-
public class RichardsonLucyF<I extends RealType<I> & NativeType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K> & NativeType<K>, C extends ComplexType<C> & NativeType<C>>
64+
public class PadAndRichardsonLucy<I extends RealType<I> & NativeType<I>, O extends RealType<O> & NativeType<O>, K extends RealType<K> & NativeType<K>, C extends ComplexType<C> & NativeType<C>>
6565
implements
6666
Functions.Arity10<RandomAccessibleInterval<I>, RandomAccessibleInterval<K>, O, C, Integer, Boolean, Boolean, long[], OutOfBoundsFactory<I, RandomAccessibleInterval<I>>, OutOfBoundsFactory<K, RandomAccessibleInterval<K>>, RandomAccessibleInterval<O>> {
6767

@@ -196,15 +196,24 @@ private void computeFilter(final RandomAccessibleInterval<I> input,
196196
@Override
197197
public RandomAccessibleInterval<O> apply(RandomAccessibleInterval<I> input, RandomAccessibleInterval<K> kernel,
198198
O outType, C complexType, Integer maxIterations,
199-
Boolean nonCirculant, Boolean accelerate,
199+
@Nullable Boolean nonCirculant, @Nullable Boolean accelerate,
200200
@Nullable long[] borderSize,
201201
@Nullable OutOfBoundsFactory<I, RandomAccessibleInterval<I>> obfInput,
202202
@Nullable OutOfBoundsFactory<K, RandomAccessibleInterval<K>> obfKernel)
203203
{
204204
if (obfInput == null)
205205
obfInput = new OutOfBoundsConstantValueFactory<>(Util.getTypeFromInterval(input).createVariable());
206206

207-
this.nonCirculant = nonCirculant;
207+
if (nonCirculant == null) {
208+
this.nonCirculant = false;
209+
}
210+
else {
211+
this.nonCirculant = nonCirculant;
212+
}
213+
214+
if (accelerate == null) {
215+
accelerate = false;
216+
}
208217
this.maxIterations = maxIterations;
209218

210219
RandomAccessibleInterval<O> output = outputCreator.apply(input, outType);

scijava-ops-image/src/test/java/org/scijava/ops/image/OpRegressionTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class OpRegressionTest {
4242

4343
@Test
4444
public void opDiscoveryRegressionIT() {
45-
long expected = 1868;
45+
long expected = 1871;
4646
long actual = ops.infos().size();
4747
assertEquals(expected, actual);
4848
}

0 commit comments

Comments
 (0)