Class LazyCellImg<T extends NativeType<T>,​A>

    • Method Detail

      • factory

        public ImgFactory<T> factory()
        Description copied from interface: Img
        Get a ImgFactory that creates Imgs of the same kind as this one. This is useful to create Imgs for temporary storage in generic methods where the specific Img type is unknown. Note, that the factory can be used even if all references to this Img have been invalidated.
        Returns:
        a factory for Imgs of the same kind as this one.
      • copy

        public Img<T> copy()
        Returns:
        - A copy of the current Img instance, all pixels are duplicated
      • linkType

        public static void linkType​(NativeType t,
                                    NativeImg img)
                             throws java.lang.NoSuchMethodException,
                                    java.lang.SecurityException,
                                    java.lang.InstantiationException,
                                    java.lang.IllegalAccessException,
                                    java.lang.IllegalArgumentException,
                                    java.lang.reflect.InvocationTargetException
        Reflection hack because there is no T NativeType <T>.create(NativeImg<?, A>) method in ImgLib2 Note that for this method to be introduced, NativeType would need an additional generic parameter A that specifies the accepted family of access objects that can be used in the NativeImg... big change
        Throws:
        java.lang.SecurityException
        java.lang.NoSuchMethodException
        java.lang.reflect.InvocationTargetException
        java.lang.IllegalArgumentException
        java.lang.IllegalAccessException
        java.lang.InstantiationException