Class JavaCVFactory

  • All Implemented Interfaces:
    ImageFactory<org.bytedeco.opencv.opencv_core.Mat>

    public class JavaCVFactory
    extends Object
    implements ImageFactory<org.bytedeco.opencv.opencv_core.Mat>

    Implements the ImageFactory interface for Mat

    Since:
    2.0
    Author:
    Christoph Praschl
    • Constructor Detail

    • Method Detail

      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(int height,
                                                                          int width,
                                                                          ChannelType channel)
        Description copied from interface: ImageFactory
        Creates a image with the given height, width and channeltype
        Specified by:
        getImage in interface ImageFactory<org.bytedeco.opencv.opencv_core.Mat>
        Parameters:
        height - height of the image
        width - width of the image
        channel - channeltype of the image
        Returns:
        image with the given properties
      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(int height,
                                                                          int width,
                                                                          int channelType,
                                                                          ChannelType channel)
      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(int height,
                                                                          int width,
                                                                          int channelType)
      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(int height,
                                                                          int width,
                                                                          ChannelType channel,
                                                                          org.bytedeco.opencv.opencv_core.Mat image)
        Encapsulates the given image
        Specified by:
        getImage in interface ImageFactory<org.bytedeco.opencv.opencv_core.Mat>
        Parameters:
        height - not used
        width - not used
        channel - channel type of the image
        image - the data which should be encapsulated in the image
        Returns:
        Wrapper of opencv image
      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(org.bytedeco.opencv.opencv_core.Mat image)
        Encapsulates the given image
        Specified by:
        getImage in interface ImageFactory<org.bytedeco.opencv.opencv_core.Mat>
        Parameters:
        image - to be wrapped
        Returns:
        wrapped image
      • getSupportedType

        public Class<org.bytedeco.opencv.opencv_core.Mat> getSupportedType()
        Specified by:
        getSupportedType in interface ImageFactory<org.bytedeco.opencv.opencv_core.Mat>
        Returns:
        the supported image type.
      • getImage

        public ImageWrapper<org.bytedeco.opencv.opencv_core.Mat> getImage​(org.bytedeco.opencv.opencv_core.Mat mat,
                                                                          ChannelType channelType)
        Factory method for getting an opencv image
        Parameters:
        mat - opencv mat image
        channelType - channel type of the image
        Returns:
        returns a opencv image with given type and size