Interface ImageFactory<X>

    • Method Detail

      • getImage

        ImageWrapper<X> getImage​(int height,
                                 int width,
                                 ChannelType channel)
        Creates a image with the given height, width and channeltype
        Parameters:
        height - height of the image
        width - width of the image
        channel - channeltype of the image
        Returns:
        image with the given properties
      • getImage

        ImageWrapper<X> getImage​(int height,
                                 int width,
                                 ChannelType channel,
                                 X image)
        Creates a image with the given height, width and channeltype
        Parameters:
        height - height of the image
        width - width of the image
        channel - channel type of the image
        image - the data which should be encapsulated in the image
        Returns:
        image with the given properties
      • getImage

        ImageWrapper<X> getImage​(X image)
        Creates a image with the given image
        Parameters:
        image - the data which should be encapsulated in the image
        Returns:
        image with the given properties
      • getSupportedType

        Class<X> getSupportedType()
        Returns:
        the supported image type.
      • getImage

        default ImageWrapper<X> getImage​(int height,
                                         int width)
        Creates a greyscale image with the given height and width
        Parameters:
        height - height of the image
        width - width of the image
        Returns:
        image with the given properties
      • getImage

        default ImageWrapper<X> getImage​(int height,
                                         int width,
                                         ChannelType type,
                                         Color defaultvalue)
        Method which provides an image of the required type with the given properties and initializes it with the given default value
        Parameters:
        height - height of the result image
        width - width of the result image
        type - type of the result image
        defaultvalue - used for initialization of the image
        Returns:
        image
      • getImage

        default ImageWrapper<X> getImage​(int height,
                                         int width,
                                         ChannelType type,
                                         double[] defaultvalue)
        Method which provides an image of the required type with the given properties and initializes it with the given default value
        Parameters:
        height - height of the result image
        width - width of the result image
        type - type of the result image
        defaultvalue - used for initialization of the image
        Returns:
        image
      • getImage

        default ImageWrapper<X> getImage​(int height,
                                         int width,
                                         ChannelType type,
                                         double defaultvalue)
        Method which provides an image of the required type with the given properties and initializes it with the given default value
        Parameters:
        height - height of the result image
        width - width of the result image
        type - type of the result image
        defaultvalue - used for initialization of the image
        Returns:
        image
      • getRandomImage

        default ImageWrapper<X> getRandomImage​(int height,
                                               int width,
                                               ChannelType type,
                                               Random random,
                                               double min,
                                               double max,
                                               boolean applyParallel)
        Method which provides an image of the required type with the given properties and initializes it with random values
        Parameters:
        height - height of the result image
        width - width of the result image
        type - type of the result image
        random - used for random initialization of the image
        min - The minimal value
        max - The maximal value
        applyParallel - create random image parallel (Attention: Will lead to a real random image, since the moment when a pixel is set can't be ensured)
        Returns:
        image