use of com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox in project bioformats by openmicroscopy.
the class FileFormatReader method readComponentMappingBox.
/**
* Read the component mapping channel.
*/
public void readComponentMappingBox(int length) throws IOException {
int num = length / 4;
comps = new short[num];
type = new byte[num];
maps = new byte[num];
for (int i = 0; i < num; i++) {
comps[i] = in.readShort();
type[i] = in.readByte();
maps[i] = in.readByte();
}
if (metadata != null) {
metadata.addNode(new ComponentMappingBox(comps, type, maps));
}
}
use of com.sun.media.imageioimpl.plugins.jpeg2000.ComponentMappingBox in project bioformats by ome.
the class FileFormatReader method readComponentMappingBox.
/**
* Read the component mapping channel.
*/
public void readComponentMappingBox(int length) throws IOException {
int num = length / 4;
comps = new short[num];
type = new byte[num];
maps = new byte[num];
for (int i = 0; i < num; i++) {
comps[i] = in.readShort();
type[i] = in.readByte();
maps[i] = in.readByte();
}
if (metadata != null) {
metadata.addNode(new ComponentMappingBox(comps, type, maps));
}
}
Aggregations