Examples of BitType


Examples of net.imglib2.type.logic.BitType

   * Create an {@link ArrayImg}<{@link BitType}, {@link BitArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public ArrayImg< BitType, LongArray > bits( final long... dim )
  {
    return ( ArrayImg< BitType, LongArray > ) new ArrayImgFactory< BitType >().create( dim, new BitType() );
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

   * Create an {@link PlanarImg}<{@link BitType}, {@link BitArray}>.
   */
  @SuppressWarnings( "unchecked" )
  final static public PlanarImg< BitType, LongArray > bits( final long... dim )
  {
    return ( PlanarImg< BitType, LongArray > ) new PlanarImgFactory< BitType >().create( dim, new BitType() );
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

  }

  @Test
  public void testBitDefaultCellSize()
  {
    testDefaultCellSize( new BitType() );
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

  }

  @Test
  public void testBitDefaultCellDimensions()
  {
    testDefaultCellDimensions( new BitType() );
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

    Cursor<BitType> c = mask.cursor();
    /*
     * Note that axes are reversed.
     */
    while(c.hasNext()) {
      BitType t = c.next();
      c.localize(position);
      assertEquals(t.get(), position[1] >=5 && position[1] < 11 && position[0] >= 16 && position[0] <23);
    }
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

    Img<BitType> mask = OverlayUtils.extractMask(iDisplay);
    assertNotNull(mask);
    Cursor<BitType> c = mask.cursor();
    double [] position = new double [2];
    while(c.hasNext()) {
      BitType t = c.next();
      position[1] = c.getDoublePosition(0);
      position[0] = c.getDoublePosition(1);
      assertEquals(t.get(), roi.contains(position));
    }
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

    assertNotNull(mask);
    assertNotNull(mask);
    Cursor<BitType> c = mask.cursor();
    double [] position = new double [2];
    while(c.hasNext()) {
      BitType t = c.next();
      position[1] = c.getDoublePosition(0);
      position[0] = c.getDoublePosition(1);
      boolean inside = false;
      for (Overlay o:oo) {
        inside |= o.getRegionOfInterest().contains(position);
      }
      assertEquals(t.get(), inside);
    }
  }
View Full Code Here

Examples of net.imglib2.type.logic.BitType

         * Boo! We have to sample from the ROI.
         */
        RealRandomAccess<BitType> roiAccess = roi.realRandomAccess();
        Cursor<BitType> c = Views.iterable(adapter).cursor();
        while(c.hasNext()) {
          BitType t = c.next();
          roiAccess.setPosition(c);
          t.set(roiAccess.get().get());
        }
      }
    }
    return mask;
  }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BitType

            return;
        }
        fillTables();

        // read data
        BitType bitType = BitTypePeer.doSelectSingleRecord(
                new Criteria().where(BitTypePeer.ID, "t1"));
        assertTrue("BIT should be true but is: "
                + bitType.getBitValue(), bitType.getBitValue());

        bitType = BitTypePeer.retrieveByPK(new StringKey("f1"));
        assertFalse("BIT should be false but is: "
                + bitType.getBitValue(), bitType.getBitValue());
    }
View Full Code Here

Examples of org.apache.torque.test.dbobject.BitType

        // query data
        Criteria criteria = new Criteria()
                .where(BitTypePeer.BIT_VALUE, new Boolean(true));
        List<BitType> bitTypeList = BitTypePeer.doSelect(criteria);
        assertEquals(1, bitTypeList.size());
        BitType bitType = bitTypeList.get(0);
        // use trim() for testkey because some databases will return the
        // testkey filled up with blanks, as it is defined as char(10)
        assertEquals("t1", bitType.getId());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.