use of net.imglib2.type.numeric.integer.ByteType 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());
}
use of net.imglib2.type.numeric.integer.ByteType 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.type.numeric.integer.ByteType 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.type.numeric.integer.ByteType 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.type.numeric.integer.ByteType 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());
}
Aggregations