Class ImageSink

    • Constructor Detail

      • ImageSink

        protected ImageSink​(int handle)
    • Method Detail

      • setDescription

        public void setDescription​(String description)
        Set sink description.
        Parameters:
        description - Description
      • getError

        public String getError()
        Get error string. Call this if WaitForFrame() returns 0 to determine what the error is.
        Returns:
        Error string.
      • setEnabled

        public void setEnabled​(boolean enabled)
        Enable or disable getting new frames. Disabling will cause processFrame (for callback-based CvSinks) to not be called and WaitForFrame() to not return. This can be used to save processor resources when frames are not needed.
        Parameters:
        enabled - Enable to get new frames.