Class AbstractImageWrapper<I>

    • Field Detail

      • image

        protected I image
        The wrapped image. It is a good idea to use a serializable type, but since there may be non-serializable types it is also ok if not.
      • channelType

        protected ChannelType channelType
        Channel type of the wrapped image
      • closed

        protected boolean closed
        Flag to check if an image is closed
    • Constructor Detail

      • AbstractImageWrapper

        public AbstractImageWrapper​(I image)
    • Method Detail

      • freeAllocatedImageWrappers

        public static void freeAllocatedImageWrappers()
        Frees all allocated Image wrappers by calling close method
      • getImage

        public I getImage()
        Getter for the wrapped image.
        Specified by:
        getImage in interface ImageWrapper<I>
        Returns:
        Returns the wrapped image.
      • equals

        public boolean equals​(Object obj)
        Uses GenericImageCompareFunction to compare if the two image wrappers are equal. If the obj is not a imagewrapper then super.equals will be called.
        Overrides:
        equals in class Object
        Parameters:
        obj - the object to compare with
        Returns:
        whether the images are equal or not.
      • hashCode

        public int hashCode()
        Generated Code
        Overrides:
        hashCode in class Object
        Returns:
        hashCode for the object