public class BasePairBitType extends AbstractBit64Type<BasePairBitType> implements BasePairType<BasePairBitType>
BasePairBitType.Base enumeration.| Modifier and Type | Class and Description |
|---|---|
static class |
BasePairBitType.Base |
dataAccess, i, img, nBits| Constructor and Description |
|---|
BasePairBitType() |
BasePairBitType(BasePairBitType.Base value) |
BasePairBitType(NativeImg<?,? extends LongAccess> bitStorage) |
| Modifier and Type | Method and Description |
|---|---|
byte |
baseToValue() |
int |
compareTo(BasePairBitType c) |
void |
complement() |
BasePairBitType |
copy()
|
NativeImg<BasePairBitType,? extends LongAccess> |
createSuitableNativeImg(NativeImgFactory<BasePairBitType> storageFactory,
long[] dim)
The
NativeType creates the NativeImg used for storing
image data; based on the given storage strategy and its size. |
BasePairBitType |
createVariable()
Creates a new
Type variable which can only store one value. |
BasePairBitType |
duplicateTypeOnSameNativeImg()
Creates a new
NativeType which stores in the same physical array. |
BasePairBitType.Base |
get() |
void |
set(BasePairBitType.Base base) |
void |
set(BasePairBitType c)
Sets the value of another
Type. |
String |
toString() |
boolean |
valueEquals(BasePairBitType t) |
getBits, setBitsdecIndex, decIndex, getEntitiesPerPixel, getIndex, incIndex, incIndex, updateContainer, updateIndexpublic BasePairBitType(NativeImg<?,? extends LongAccess> bitStorage)
public BasePairBitType(BasePairBitType.Base value)
public BasePairBitType()
public NativeImg<BasePairBitType,? extends LongAccess> createSuitableNativeImg(NativeImgFactory<BasePairBitType> storageFactory, long[] dim)
NativeTypeNativeType 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.createSuitableNativeImg in interface NativeType<BasePairBitType>storageFactory - which storage strategy is useddim - the dimensionsNativeImg where only the Type
knows the BasicType it contains.public BasePairBitType duplicateTypeOnSameNativeImg()
NativeTypeNativeType which stores in the same physical array.
This is only used internally.duplicateTypeOnSameNativeImg in interface NativeType<BasePairBitType>NativeType instance working on the same
NativeImgpublic void set(BasePairBitType.Base base)
set in interface BasePairType<BasePairBitType>public BasePairBitType.Base get()
get in interface BasePairType<BasePairBitType>public int compareTo(BasePairBitType c)
compareTo in interface Comparable<BasePairBitType>public void complement()
complement in interface BasePairType<BasePairBitType>public byte baseToValue()
baseToValue in interface BasePairType<BasePairBitType>public void set(BasePairBitType c)
TypeType.set in interface Type<BasePairBitType>c - the new valuepublic BasePairBitType createVariable()
TypeType variable which can only store one value.createVariable in interface Type<BasePairBitType>Type variablepublic BasePairBitType copy()
Typecopy in interface Type<BasePairBitType>Type variablepublic boolean valueEquals(BasePairBitType t)
valueEquals in interface ValueEquals<BasePairBitType>Copyright © 2009–2017 ImgLib2. All rights reserved.