use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalTriangleThreshold.
/**
* @see LocalTriangleThreshold
*/
@Test
public void testLocalTriangleThreshold() {
ops.run(Triangle.class, out, in, new RectangleShape(1, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(false, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalSauvolaIntegral.
/**
* @see LocalSauvolaThresholdIntegral
*/
@Test
public void testLocalSauvolaIntegral() {
ops.run(LocalSauvolaThresholdIntegral.class, out, in, new RectangleShape(2, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE), 0.5, 0.5);
assertEquals(false, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalBernsenThreshold.
/**
* @see LocalBernsenThreshold
*/
@Test
public void testLocalBernsenThreshold() {
ops.run(LocalBernsenThreshold.class, out, in, new RectangleShape(3, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE), 1.0, Double.MAX_VALUE * 0.5);
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalThresholdMean.
/**
* @see LocalMeanThreshold
*/
@Test
public void testLocalThresholdMean() {
ops.run(LocalMeanThreshold.class, out, in, new RectangleShape(1, 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 testLocalRosinThreshold.
/**
* @see LocalRosinThreshold
*/
@Test
public void testLocalRosinThreshold() {
ops.run(Rosin.class, out, in, new RectangleShape(1, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(false, out.firstElement().get());
}
Aggregations