org.canova.image.recordreader

Class BaseImageRecordReader

    • Field Detail

      • conf

        protected org.canova.api.conf.Configuration conf
      • currentFile

        protected File currentFile
      • appendLabel

        protected boolean appendLabel
      • record

        protected Collection<org.canova.api.writable.Writable> record
      • allowedFormats

        protected final List<String> allowedFormats
      • hitImage

        protected boolean hitImage
      • WIDTH

        public static final String WIDTH
      • HEIGHT

        public static final String HEIGHT
      • CHANNELS

        public static final String CHANNELS
    • Constructor Detail

      • BaseImageRecordReader

        public BaseImageRecordReader()
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             int channels)
        Load the record reader with the given width and height
        Parameters:
        width - the width load
        height - the height to load
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             int channels,                             List<String> labels)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             int channels,                             boolean appendLabel,                             List<String> labels)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             int channels,                             boolean appendLabel)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             List<String> labels)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             boolean appendLabel,                             List<String> labels)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height)
      • BaseImageRecordReader

        public BaseImageRecordReader(int width,                             int height,                             boolean appendLabel)
    • Method Detail

      • next

        public Collection<org.canova.api.writable.Writable> next()
        Specified by:
        next in interface org.canova.api.records.reader.RecordReader
      • hasNext

        public boolean hasNext()
        Specified by:
        hasNext in interface org.canova.api.records.reader.RecordReader
      • setConf

        public void setConf(org.canova.api.conf.Configuration conf)
        Specified by:
        setConf in interface org.canova.api.conf.Configurable
      • getConf

        public org.canova.api.conf.Configuration getConf()
        Specified by:
        getConf in interface org.canova.api.conf.Configurable
      • getLabel

        protected abstract String getLabel(String path)
        Get the label from the given path
        Parameters:
        path - the path to get the label from
        Returns:
        the label for the given path
      • accumulateLabel

        protected void accumulateLabel(String path)
        Accumulate the label from the path
        Parameters:
        path - the path to get the label from
      • getCurrentFile

        public File getCurrentFile()
      • setCurrentFile

        public void setCurrentFile(File currentFile)
      • getLabels

        public List<String> getLabels()
        Specified by:
        getLabels in interface org.canova.api.records.reader.RecordReader
      • reset

        public void reset()
        Specified by:
        reset in interface org.canova.api.records.reader.RecordReader

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