use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalMinErrorThreshold.
/**
* @see LocalMinErrorThreshold
*/
@Test
public void testLocalMinErrorThreshold() {
ops.run(MinError.class, out, in, new RectangleShape(1, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalMedianThreshold.
/**
* @see LocalMedianThreshold
*/
@Test
public void testLocalMedianThreshold() {
ops.run(LocalMedianThreshold.class, out, in, new RectangleShape(3, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE), 0.0);
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalMidGreyThreshold.
/**
* @see LocalMidGreyThreshold
*/
@Test
public void testLocalMidGreyThreshold() {
ops.run(LocalMidGreyThreshold.class, out, in, new RectangleShape(3, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE), 0.0);
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalMaxLikelihoodThreshold.
/**
* @see LocalMaxLikelihoodThreshold
*/
@Test
public void testLocalMaxLikelihoodThreshold() {
// NB: Test fails for RectangleShapes of up to span==2
ops.run(MaxLikelihood.class, out, in, new RectangleShape(3, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalIJ1Threshold.
/**
* @see LocalIJ1Threshold
*/
@Test
public void testLocalIJ1Threshold() {
ops.run(IJ1.class, out, in, new RectangleShape(1, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(true, out.firstElement().get());
}
Aggregations