public class MBFImageReader extends Object implements BinaryReader<MBFImage>
BinaryReader for CIFAR data that converts the encoded rgb pixel
values into an MBFImage.| Constructor and Description |
|---|
MBFImageReader(int width,
int height)
Construct with the given image height and width.
|
| Modifier and Type | Method and Description |
|---|---|
MBFImage |
read(byte[] record)
Read the binary data into an object
|
public MBFImageReader(int width, int height)
read(byte[]) must be 3 * height * width in length.width - the image widthheight - the image heightpublic MBFImage read(byte[] record)
BinaryReaderread in interface BinaryReader<MBFImage>record - the data