Class ImageStackFactory

  • All Implemented Interfaces:
    ImageFactory<ij.ImageStack>

    public class ImageStackFactory
    extends Object
    implements ImageFactory<ij.ImageStack>

    Implementation of a ImageFactory for ImageJ's ImageStack

    Since:
    1.1
    Author:
    Christoph Praschl
    • Constructor Detail

      • ImageStackFactory

        public ImageStackFactory()
        Do not instantiate this class directly. This constructor is only need, to work with ServiceLoader. Get yourself an instance using ImageFactoryFactory.getImageFactory(Class) method. Using class = ImageStack.class for this specific factory.
    • Method Detail

      • getImage

        public ImageWrapper<ij.ImageStack> 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 interface ImageFactory<ij.ImageStack>
        Parameters:
        height - height of the image
        width - width of the image
        channel - channeltype of the image
        Returns:
        image with the given properties
      • getImage

        public ImageWrapper<ij.ImageStack> getImage​(int height,
                                                    int width,
                                                    ChannelType channel,
                                                    ij.ImageStack image)
        Description copied from interface: ImageFactory
        Creates a image with the given height, width and channeltype
        Specified by:
        getImage in interface ImageFactory<ij.ImageStack>
        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

        public ImageWrapper<ij.ImageStack> getImage​(ij.ImageStack image)
        Description copied from interface: ImageFactory
        Creates a image with the given image
        Specified by:
        getImage in interface ImageFactory<ij.ImageStack>
        Parameters:
        image - the data which should be encapsulated in the image
        Returns:
        image with the given properties
      • getSupportedType

        public Class<ij.ImageStack> getSupportedType()
        Specified by:
        getSupportedType in interface ImageFactory<ij.ImageStack>
        Returns:
        the supported image type.