本文整理了Java中net.imglib2.type.logic.BitType.<init>()
方法的一些代码示例,展示了BitType.<init>()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。BitType.<init>()
方法的具体详情如下:
包路径:net.imglib2.type.logic.BitType
类名称:BitType
方法名:<init>
暂无
代码示例来源:origin: net.imglib2/imglib2-ops
@Override
public BitType createOutput() {
return new BitType();
}
}
代码示例来源:origin: imglib/imglib2
@Override
public BitType createVariable()
{
return new BitType();
}
代码示例来源:origin: imglib/imglib2
@Override
public BitType duplicateTypeOnSameNativeImg()
{
return new BitType( img );
}
代码示例来源:origin: net.imagej/imagej-common
@Override
public BitType createVariable() {
return new BitType();
}
代码示例来源:origin: net.imglib2/imglib2-ops
@Override
public BitType createOutput() {
return new BitType();
}
}
代码示例来源:origin: net.imagej/imagej-deprecated
@Override
public BitType createOutput() {
return new BitType();
}
}
代码示例来源:origin: net.imagej/imagej-deprecated
@Override
public BitType createOutput() {
return new BitType();
}
}
代码示例来源:origin: imglib/imglib2
@Override
public BitType copy()
{
return new BitType( get() );
}
代码示例来源:origin: net.imglib2/imglib2
/**
* Create an {@link ArrayImg}<{@link BitType}, {@link LongArray}>.
*/
@SuppressWarnings( "unchecked" )
final static public ArrayImg< BitType, LongArray > bits( final long... dim )
{
return ( ArrayImg< BitType, LongArray > ) new ArrayImgFactory<>( new BitType() ).create( dim );
}
代码示例来源:origin: sc.fiji/Colocalisation_Analysis
/**
* Create a new mask image without any specific content, but with
* a defined size.
*/
public static RandomAccessibleInterval<BitType> createMask(long[] dim) {
ImgFactory< BitType > imgFactory = new ArrayImgFactory< BitType >();
return imgFactory.create(dim, new BitType());
}
代码示例来源:origin: imagej/imagej-ops
@Test
public void testOr() {
assertTrue(((BitType) ops.run(BooleanTypeLogic.Or.class, new BitType(true),
new BitType(true))).get());
assertTrue(((BitType) ops.run(BooleanTypeLogic.Or.class, new BitType(true),
new BitType(false))).get());
assertTrue(((BitType) ops.run(BooleanTypeLogic.Or.class, new BitType(false),
new BitType(true))).get());
assertFalse(((BitType) ops.run(BooleanTypeLogic.Or.class, new BitType(
false), new BitType(false))).get());
}
代码示例来源:origin: imagej/imagej-ops
@Test
public void testXor() {
assertFalse(((BitType) ops.run(BooleanTypeLogic.Xor.class, new BitType(
true), new BitType(true))).get());
assertTrue(((BitType) ops.run(BooleanTypeLogic.Xor.class, new BitType(true),
new BitType(false))).get());
assertTrue(((BitType) ops.run(BooleanTypeLogic.Xor.class, new BitType(
false), new BitType(true))).get());
assertFalse(((BitType) ops.run(BooleanTypeLogic.Xor.class, new BitType(
false), new BitType(false))).get());
}
}
代码示例来源:origin: net.imagej/imagej-common
private RandomAccessible<BitType> constantImg(final int numDims) {
final long[] dims = new long[numDims];
Arrays.fill(dims, 1);
final ArrayImg<BitType, LongArray> bitImg = ArrayImgs.bits(dims);
bitImg.setLinkedType(new BitType(bitImg));
bitImg.cursor().next().set(true);
return Views.extendBorder(bitImg);
}
代码示例来源:origin: imglib/imglib2
@Test
public void testBitDefaultCellSize()
{
testDefaultCellSize( new BitType() );
}
代码示例来源:origin: imagej/imagej-ops
@SuppressWarnings({ "rawtypes", "unchecked" })
@Override
public void initialize() {
createFunc = RAIs.function(ops(), CreateImgFromDimsAndType.class, in(), new BitType());
floodFillComp = (BinaryComputerOp) Computers.binary(ops(),
Ops.Morphology.FloodFill.class, RandomAccessibleInterval.class, in(),
Localizable.class, structElement);
}
代码示例来源:origin: imagej/imagej-ops
@Test
public void testObjectsEqual() {
assertFalse(((BitType) ops.run(BooleanTypeLogic.ObjectsEqual.class,
new BitType(), 2, 1)).get());
assertTrue(((BitType) ops.run(BooleanTypeLogic.ObjectsEqual.class,
new BitType(), 2, 2)).get());
assertFalse(((BitType) ops.run(BooleanTypeLogic.ObjectsEqual.class,
new BitType(), 2, 3)).get());
}
代码示例来源:origin: imagej/imagej-ops
@Test
public void testComparableGreaterThan() {
assertTrue(((BitType) ops.run(BooleanTypeLogic.ComparableGreaterThan.class,
new BitType(), 5.0, 3.0)).get());
assertFalse(((BitType) ops.run(BooleanTypeLogic.ComparableGreaterThan.class,
new BitType(), 5.0, 6.0)).get());
}
代码示例来源:origin: imglib/imglib2
/**
* Tests {@link BitType#setBigInteger(BigInteger)} and ensures that the value
* returned is within BitType range.
*/
@Test
public void testSetBigInteger() {
final BitType ul = new BitType( false );
assertEquals( ul.get(), false );
final BigInteger bi = new BigInteger( "AAAAAA3141343BBBBBBBBBBB4134", 16 );
ul.setBigInteger( bi );
assertEquals( ul.get(), true );
}
代码示例来源:origin: imagej/imagej-ops
@SuppressWarnings({ "unchecked", "rawtypes" })
@Override
public void initialize() {
applyThresholdComp = (BinaryComputerOp) Computers.binary(ops(), Ops.Threshold.Apply.class,
out() == null ? IterableInterval.class : out(), in(), in().firstElement());
histCreator = (UnaryFunctionOp) Functions.unary(ops(),
Ops.Image.Histogram.class, Histogram1d.class, in());
imgCreator = (UnaryFunctionOp) Functions.unary(ops(), Ops.Create.Img.class,
Img.class, in(), new BitType());
}
代码示例来源:origin: imagej/imagej-ops
@Test
public void testFillHoles() {
Img<BitType> result = ops.create().img(imgWithHoles);
ops.morphology().fillHoles(result, imgWithHoles, new DiamondShape(1));
Cursor<BitType> resultC = result.cursor();
final BitType one = new BitType(true);
while (resultC.hasNext()) {
assertEquals(one, resultC.next());
}
}
内容来源于网络,如有侵权,请联系作者删除!