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

java.lang.Object
net.imglib2.blocks.ViewProperties<T,R>
Type Parameters:
T - type of the view RandomAccessible
R - type of the root NativeImg

class ViewProperties<T extends NativeType<T>, R extends NativeType<R>> extends Object
Data that describes RandomAccessible View that can be copied from using ViewPrimitiveBlocks.

Use ViewAnalyzer.getViewProperties(RandomAccessible) to (try to) extract ViewProperties for a given RandomAccessible.

  • Field Details

  • Constructor Details

    • ViewProperties

      ViewProperties(T viewType, NativeImg<R,?> root, R rootType, Extension extension, MixedTransform transform, MixedTransform permuteInvertTransform, 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 Details

    • toString

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

      public T getViewType()
    • getRoot

      public NativeImg<R,?> getRoot()
    • 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.
    • getTransform

      public MixedTransform getTransform()
    • 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 Supplier<Converter<R,T>> getConverterSupplier()