Class ImageFileSource


  • public final class ImageFileSource
    extends Source
    Provides a way to generate a opencv_core.Mat from an image on the filesystem.
    • Method Detail

      • initialize

        public void initialize()
                        throws java.io.IOException
        Performs the loading of the image from the file system.
        Specified by:
        initialize in class Source
        Throws:
        java.io.IOException - If the image fails to load from the filesystem
      • getName

        public java.lang.String getName()
        Description copied from class: Source
        This is used by the GUI to distinguish different sources. For example, ImageFileSource returns the filename of the image.
        Specified by:
        getName in class Source
        Returns:
        The name of this source.
      • updateOutputSockets

        protected boolean updateOutputSockets()
        Description copied from class: Source
        This method will check if there are any pending updates to output sockets. If there are any, update the sockets and then return true. If there are no updates this function should return false.
        Specified by:
        updateOutputSockets in class Source
        Returns:
        true if there are updates ready to be moved into the socket.
      • getProperties

        public java.util.Properties getProperties()
        Description copied from class: Source
        This is used for serialization/deserialization.
        Specified by:
        getProperties in class Source
        Returns:
        A Properties containing data that can be used to re-create this source.