org.canova.image.mnist

Class MnistDbFile

  • All Implemented Interfaces:
    Closeable, DataInput, DataOutput, AutoCloseable
    Direct Known Subclasses:
    MnistImageFile, MnistLabelFile


    public abstract class MnistDbFileextends RandomAccessFile
    MNIST database file containing entries that can represent image or label data. Extends the standard random access file with methods for navigating over the entries. The file format is basically idx with specific header information. This includes a magic number for determining the type of stored entries, count of entries.
    • Method Detail

      • getMagicNumber

        protected abstract int getMagicNumber()
        MNIST DB files start with unique integer number.
        Returns:
        integer number that should be found in the beginning of the file.
      • getCurrentIndex

        public long getCurrentIndex()                     throws IOException
        The current entry index.
        Returns:
        long
        Throws:
        IOException
      • setCurrentIndex

        public void setCurrentIndex(long curr)
        Set the required current entry index.
        Parameters:
        curr - the entry index
      • getHeaderSize

        public int getHeaderSize()
      • getEntryLength

        public int getEntryLength()
        Number of bytes for each entry. Defaults to 1.
        Returns:
        int
      • getCount

        public int getCount()

Copyright © 2015. All rights reserved.



NOTHING
NOTHING
Add the Maven Dependecy to your project: maven dependecy for com.amazonaws : aws-java-sdk : 1.3.14