Class INDArrayFactory
- java.lang.Object
-
- science.aist.imaging.nd4j.imageprocessing.wrapper.INDArrayFactory
-
- All Implemented Interfaces:
ImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
public class INDArrayFactory extends Object implements ImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
Implementation of a
ImageFactory
for Deeplearning4j'sINDArray
- Since:
- 1.1
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description INDArrayFactory()
Do not instantiate this class directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<org.nd4j.linalg.api.ndarray.INDArray>
getImage(int height, int width, ChannelType channel)
Creates a image with the given height, width and channeltypeImageWrapper<org.nd4j.linalg.api.ndarray.INDArray>
getImage(int height, int width, ChannelType channel, org.nd4j.linalg.api.ndarray.INDArray image)
Creates a image with the given height, width and channeltypeImageWrapper<org.nd4j.linalg.api.ndarray.INDArray>
getImage(org.nd4j.linalg.api.ndarray.INDArray image)
Creates a image with the given imageClass<org.nd4j.linalg.api.ndarray.INDArray>
getSupportedType()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface science.aist.imaging.api.domain.wrapper.ImageFactory
getImage, getImage, getImage, getImage, getRandomImage
-
-
-
-
Constructor Detail
-
INDArrayFactory
public INDArrayFactory()
Do not instantiate this class directly. This constructor is only need, to work withServiceLoader
. Get yourself an instance usingImageFactoryFactory.getImageFactory(Class)
method. Usingclass = ImageProcessor.class
for this specific factory.
-
-
Method Detail
-
getImage
public ImageWrapper<org.nd4j.linalg.api.ndarray.INDArray> 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 interfaceImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
- Parameters:
height
- height of the imagewidth
- width of the imagechannel
- channeltype of the image- Returns:
- image with the given properties
-
getImage
public ImageWrapper<org.nd4j.linalg.api.ndarray.INDArray> getImage(int height, int width, ChannelType channel, org.nd4j.linalg.api.ndarray.INDArray image)
Description copied from interface:ImageFactory
Creates a image with the given height, width and channeltype- Specified by:
getImage
in interfaceImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
- 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
public ImageWrapper<org.nd4j.linalg.api.ndarray.INDArray> getImage(org.nd4j.linalg.api.ndarray.INDArray image)
Description copied from interface:ImageFactory
Creates a image with the given image- Specified by:
getImage
in interfaceImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
- Parameters:
image
- the data which should be encapsulated in the image- Returns:
- image with the given properties
-
getSupportedType
public Class<org.nd4j.linalg.api.ndarray.INDArray> getSupportedType()
- Specified by:
getSupportedType
in interfaceImageFactory<org.nd4j.linalg.api.ndarray.INDArray>
- Returns:
- the supported image type.
-
-