public final class ImageFileEncoding extends Object
Constructor and Description |
---|
ImageFileEncoding(boolean rgb,
boolean interleaved,
int numberChannelsPerArray) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
getNumberChannelsPerArray()
The total number of channels found in any one buffer.
|
int |
hashCode() |
boolean |
isInterleaved()
Whether the channels are interleaved
|
boolean |
isRgb()
Whether the source bytes encoded as RGB (i.e.
|
int |
numberDistinctChannelsSource()
When RGB-encoded and non-interleaved, the source array is considered 1 channel (not three).
|
String |
toString() |
public ImageFileEncoding(boolean rgb, boolean interleaved, int numberChannelsPerArray)
public int numberDistinctChannelsSource() throws IOException
When not RGB encoded, it describes the number of interleaved channels present.
IOException
- if numberChannelsPerArray is zero, and the image is either non-RGB or
interleaved.public boolean isRgb()
public boolean isInterleaved()
Interleaving means that voxels from successive channels are directly adjacent. Otherwise, each channel's voxels are contiguous.
public int getNumberChannelsPerArray()
For an RGB image, this is by definition three.
Copyright © 2010–2023 Owen Feehan, ETH Zurich, University of Zurich, Hoffmann-La Roche. All rights reserved.