Class ImageProcessorFactory
- java.lang.Object
-
- science.aist.imaging.imagej.imageprocessing.wrapper.ImageProcessorFactory
-
- All Implemented Interfaces:
ImageFactory<ij.process.ImageProcessor>
public class ImageProcessorFactory extends Object implements ImageFactory<ij.process.ImageProcessor>
Implementation of a
ImageFactory
for ImageJ'sImageProcessor
Note that ImageJ saves pixels as integers using bit shifting. So if you need more than 3 channels take
ImageStackFactory
.- Since:
- 1.1
- Author:
- Christoph Praschl
-
-
Constructor Summary
Constructors Constructor Description ImageProcessorFactory()
Do not instantiate this class directly.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ImageWrapper<ij.process.ImageProcessor>
getImage(int height, int width, ChannelType channel)
Creates a image with the given height, width and channeltypeImageWrapper<ij.process.ImageProcessor>
getImage(int height, int width, ChannelType channel, ij.process.ImageProcessor image)
Creates a image with the given height, width and channeltypeImageWrapper<ij.process.ImageProcessor>
getImage(ij.process.ImageProcessor image)
Creates a image with the given imageClass<ij.process.ImageProcessor>
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
-
ImageProcessorFactory
public ImageProcessorFactory()
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<ij.process.ImageProcessor> 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<ij.process.ImageProcessor>
- Parameters:
height
- height of the imagewidth
- width of the imagechannel
- channeltype of the image- Returns:
- image with the given properties
-
getImage
public ImageWrapper<ij.process.ImageProcessor> getImage(int height, int width, ChannelType channel, ij.process.ImageProcessor image)
Description copied from interface:ImageFactory
Creates a image with the given height, width and channeltype- Specified by:
getImage
in interfaceImageFactory<ij.process.ImageProcessor>
- 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<ij.process.ImageProcessor> getImage(ij.process.ImageProcessor image)
Description copied from interface:ImageFactory
Creates a image with the given image- Specified by:
getImage
in interfaceImageFactory<ij.process.ImageProcessor>
- Parameters:
image
- the data which should be encapsulated in the image- Returns:
- image with the given properties
-
getSupportedType
public Class<ij.process.ImageProcessor> getSupportedType()
- Specified by:
getSupportedType
in interfaceImageFactory<ij.process.ImageProcessor>
- Returns:
- the supported image type.
-
-