Package adams.data.image
Interface BitmaskContainer<T>
-
- Type Parameters:
T
- the type of image the bitmask represents
- All Known Implementing Classes:
BufferedImageBitmaskContainer
public interface BitmaskContainer<T>
Interface for containers that store bitmasks.- Author:
- FracPete (fracpete at waikato dot ac dot nz)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description T[]
getBitmasks()
Returns the stored bitmasks.int
getNumBitmasks()
Returns the number of bitmasks stored.boolean
hasBitmasks()
Checks whether bitmasks are present.void
setBitmasks(T[] value)
Stores the bitmasks.
-
-
-
Method Detail
-
hasBitmasks
boolean hasBitmasks()
Checks whether bitmasks are present.- Returns:
- true if present
-
getNumBitmasks
int getNumBitmasks()
Returns the number of bitmasks stored.- Returns:
- the number of masks
-
setBitmasks
void setBitmasks(T[] value)
Stores the bitmasks.- Parameters:
value
- the bitmasks to store, null to remove
-
getBitmasks
T[] getBitmasks()
Returns the stored bitmasks.- Returns:
- the bitmasks, null if none stored
-
-