Class Image2ByteFactory
- java.lang.Object
-
- science.aist.imaging.api.domain.wrapper.implementation.Image2ByteFactory
-
- All Implemented Interfaces:
ImageFactory<short[][][]>
public class Image2ByteFactory extends Object implements ImageFactory<short[][][]>
Implements the
ImageFactory
interface for 2 byte images- Since:
- 1.0
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description Image2ByteFactory()
Do not instantiate this class directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<short[][][]>
getImage(int height, int width, ChannelType channel)
Creates a image with the given height, width and channeltypeImageWrapper<short[][][]>
getImage(int height, int width, ChannelType channel, short[][][] image)
Creates a image with the given height, width and channeltypeImageWrapper<short[][][]>
getImage(short[][][] image)
Creates a image with the given imageClass<short[][][]>
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
-
Image2ByteFactory
public Image2ByteFactory()
Do not instantiate this class directly. This constructor is only need, to work withServiceLoader
. Get yourself an instance usingImageFactoryFactory.getImageFactory(Class)
method. Usingclass = short[][][].class
for this specific factory.
-
-
Method Detail
-
getImage
public ImageWrapper<short[][][]> 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<short[][][]>
- Parameters:
height
- height of the imagewidth
- width of the imagechannel
- channeltype of the image- Returns:
- image with the given properties
-
getImage
public ImageWrapper<short[][][]> getImage(int height, int width, ChannelType channel, short[][][] image)
Description copied from interface:ImageFactory
Creates a image with the given height, width and channeltype- Specified by:
getImage
in interfaceImageFactory<short[][][]>
- 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<short[][][]> getImage(short[][][] image)
Description copied from interface:ImageFactory
Creates a image with the given image- Specified by:
getImage
in interfaceImageFactory<short[][][]>
- Parameters:
image
- the data which should be encapsulated in the image- Returns:
- image with the given properties
-
getSupportedType
public Class<short[][][]> getSupportedType()
- Specified by:
getSupportedType
in interfaceImageFactory<short[][][]>
- Returns:
- the supported image type.
-
-