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