Class Unsigned12BitType

All Implemented Interfaces:
Comparable<Unsigned12BitType>, NativeType<Unsigned12BitType>, ComplexType<Unsigned12BitType>, IntegerType<Unsigned12BitType>, NumericType<Unsigned12BitType>, RealType<Unsigned12BitType>, Add<Unsigned12BitType>, Div<Unsigned12BitType>, Mul<Unsigned12BitType>, MulFloatingPoint, SetOne, SetZero, Sub<Unsigned12BitType>, ValueEquals<Unsigned12BitType>, Type<Unsigned12BitType>

public class Unsigned12BitType extends AbstractIntegerBitType<Unsigned12BitType>
A 12-bit Type whose data is stored in a LongAccess.
Author:
Albert Cardona, Stephan Preibisch
  • Constructor Details

    • Unsigned12BitType

      public Unsigned12BitType(NativeImg<?,? extends LongAccess> bitStorage)
    • Unsigned12BitType

      public Unsigned12BitType(long value)
    • Unsigned12BitType

      public Unsigned12BitType(LongAccess access)
    • Unsigned12BitType

      public Unsigned12BitType()
  • Method Details

    • createSuitableNativeImg

      public NativeImg<Unsigned12BitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<Unsigned12BitType> storageFactory, long[] dim)
      Description copied from interface: NativeType
      The NativeType creates the NativeImg used for storing image data; based on the given storage strategy and its size. It basically only decides here which BasicType it uses (float, int, byte, bit, ...) and how many entities per pixel it needs (e.g. 2 floats per pixel for a complex number). This enables the separation of containers and the basic types.
      Parameters:
      storageFactory - which storage strategy is used
      dim - the dimensions
      Returns:
      the instantiated NativeImg where only the Type knows the BasicType it contains.
    • duplicateTypeOnSameNativeImg

      public Unsigned12BitType duplicateTypeOnSameNativeImg()
      Description copied from interface: NativeType
      Creates a new NativeType which stores in the same physical array. This is only used internally.
      Returns:
      a new NativeType instance working on the same NativeImg
    • get

      public long get()
      Specified by:
      get in class AbstractIntegerBitType<Unsigned12BitType>
    • set

      public void set(long value)
      Specified by:
      set in class AbstractIntegerBitType<Unsigned12BitType>
    • createVariable

      public Unsigned12BitType createVariable()
      Description copied from interface: Type
      Creates a new Type variable which can only store one value.
      Returns:
      a new Type variable
    • copy

      public Unsigned12BitType copy()
      Description copied from interface: Type
      Creates a new Type variable that has the value of this Type
      Returns:
      a new Type variable