use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalPhansalkarIntegral.
/**
* @see LocalPhansalkarThresholdIntegral
*/
@Test
public void testLocalPhansalkarIntegral() {
ops.run(LocalPhansalkarThresholdIntegral.class, out, normalizedIn, new RectangleShape(2, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE), 0.25, 0.5);
assertEquals(true, out.firstElement().get());
}
use of net.imglib2.outofbounds.OutOfBoundsMirrorFactory in project imagej-ops by imagej.
the class LocalThresholdTest method testLocalYenThreshold.
/**
* @see LocalYenThreshold
*/
@Test
public void testLocalYenThreshold() {
ops.run(Yen.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 testLocalIntermodesThreshold.
/**
* @see LocalIntermodesThreshold
*/
@Test
public void testLocalIntermodesThreshold() {
ops.run(Intermodes.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 testLocalMinimumThreshold.
/**
* @see LocalMinimumThreshold
*/
@Test
public void testLocalMinimumThreshold() {
ops.run(Minimum.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 testLocalMomentsThreshold.
/**
* @see LocalMomentsThreshold
*/
@Test
public void testLocalMomentsThreshold() {
ops.run(Moments.class, out, in, new RectangleShape(1, false), new OutOfBoundsMirrorFactory<ByteType, Img<ByteType>>(Boundary.SINGLE));
assertEquals(false, out.firstElement().get());
}
Aggregations