Class ViewProperties<T extends NativeType<T>,​R extends NativeType<R>>

    • Field Detail

      • extension

        private final Extension extension
      • hasTransform

        private final boolean hasTransform
      • permuteInvertTransform

        private final MixedTransform permuteInvertTransform
      • hasPermuteInvertTransform

        private final boolean hasPermuteInvertTransform
    • Constructor Detail

      • ViewProperties

        ViewProperties​(T viewType,
                       NativeImg<R,​?> root,
                       R rootType,
                       Extension extension,
                       MixedTransform transform,
                       MixedTransform permuteInvertTransform,
                       java.util.function.Supplier<? extends Converter<?,​?>> converterSupplier)
        Create ViewProperties.
        Parameters:
        viewType - pixel type of the View to copy from
        root - the NativeImg at the root of the View chain
        rootType - pixel type of the root NativeImg
        extension - out-of-bounds extension to apply to the root
        transform - the concatenated transform from the final View to the root.
        permuteInvertTransform - captures axis permutation and inversion part in transform.
        converterSupplier - creates Converter from rootType to viewType.
    • Method Detail

      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object
      • getViewType

        public T getViewType()
      • getRootType

        public R getRootType()
      • getExtension

        public Extension getExtension()
      • hasTransform

        public boolean hasTransform()
        Returns true if there is a non-identity transform.
        Returns:
        true iff the transform is not identity.
      • hasPermuteInvertTransform

        public boolean hasPermuteInvertTransform()
        Returns true if there is a non-identity permute-invert transform.
        Returns:
        true iff the permute-invert transform is not identity.
      • getPermuteInvertTransform

        public MixedTransform getPermuteInvertTransform()
      • hasConverterSupplier

        public boolean hasConverterSupplier()
      • getConverterSupplier

        public java.util.function.Supplier<Converter<R,​T>> getConverterSupplier()