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 viewRandomAccessibleR- type of the rootNativeImg
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 Summary
FieldsModifier and TypeFieldDescriptionprivate final Extensionprivate final booleanprivate final booleanprivate final MixedTransformprivate final Rprivate final MixedTransformprivate final T -
Constructor Summary
ConstructorsConstructorDescriptionViewProperties(T viewType, NativeImg<R, ?> root, R rootType, Extension extension, MixedTransform transform, MixedTransform permuteInvertTransform, Supplier<? extends Converter<?, ?>> converterSupplier) CreateViewProperties. -
Method Summary
Modifier and TypeMethodDescriptiongetRoot()booleanbooleanReturnstrueif there is a non-identitypermute-inverttransform.booleanReturnstrueif there is a non-identitytransform.toString()
-
Field Details
-
viewType
-
root
-
rootType
-
extension
-
transform
-
hasTransform
private final boolean hasTransform -
permuteInvertTransform
-
hasPermuteInvertTransform
private final boolean hasPermuteInvertTransform -
converterSupplier
private final Supplier<Converter<R extends NativeType<R>, T extends NativeType<T>>> converterSupplier
-
-
Constructor Details
-
ViewProperties
ViewProperties(T viewType, NativeImg<R, ?> root, R rootType, Extension extension, MixedTransform transform, MixedTransform permuteInvertTransform, Supplier<? extends Converter<?, ?>> converterSupplier) CreateViewProperties.- Parameters:
viewType- pixel type of the View to copy fromroot- theNativeImgat the root of the View chainrootType- pixel type of the rootNativeImgextension- out-of-bounds extension to apply to the roottransform- the concatenated transform from the final View to the root.permuteInvertTransform- captures axis permutation and inversion part intransform.converterSupplier- createsConverterfromrootTypetoviewType.
-
-
Method Details
-
toString
-
getViewType
-
getRoot
-
getRootType
-
getExtension
-
hasTransform
-
getTransform
-
hasPermuteInvertTransform
public boolean hasPermuteInvertTransform()Returnstrueif there is a non-identitypermute-inverttransform.- Returns:
trueiff thepermute-inverttransform is not identity.
-
getPermuteInvertTransform
-
hasConverterSupplier
public boolean hasConverterSupplier() -
getConverterSupplier
-