Interface ImageFactory<X>
-
- All Known Implementing Classes:
BufferedImageFactory
,FImageFactory
,Image2ByteFactory
,Image8ByteFactory
,ImageProcessorFactory
,ImageStackFactory
,INDArrayFactory
,JavaCVFactory
,MBFImageFactory
,OpenCVFactory
,WriteableImageFactory
public interface ImageFactory<X>
Factory class for a given imagewrapper type
- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default ImageWrapper<X>
getImage(int height, int width)
Creates a greyscale image with the given height and widthImageWrapper<X>
getImage(int height, int width, ChannelType channel)
Creates a image with the given height, width and channeltypedefault 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 valuedefault 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 valuedefault 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 valueImageWrapper<X>
getImage(int height, int width, ChannelType channel, X image)
Creates a image with the given height, width and channeltypeImageWrapper<X>
getImage(X image)
Creates a image with the given imagedefault 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 valuesClass<X>
getSupportedType()
-
-
-
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 imagewidth
- width of the imagechannel
- 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 imagewidth
- width of the imagechannel
- channel type of the imageimage
- 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
-
getImage
default ImageWrapper<X> getImage(int height, int width)
Creates a greyscale image with the given height and width- Parameters:
height
- height of the imagewidth
- 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 imagewidth
- width of the result imagetype
- type of the result imagedefaultvalue
- 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 imagewidth
- width of the result imagetype
- type of the result imagedefaultvalue
- 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 imagewidth
- width of the result imagetype
- type of the result imagedefaultvalue
- 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 imagewidth
- width of the result imagetype
- type of the result imagerandom
- used for random initialization of the imagemin
- The minimal valuemax
- The maximal valueapplyParallel
- 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
-
-