- java.lang.Object
-
- bdv.img.MipmapInfo
-
- Direct Known Subclasses:
ExportMipmapInfo
public class MipmapInfo extends Object
Description of available mipmap levels for aBasicViewSetup. Contains for each mipmap level, the subsampling factors and subdivision block sizes.- Author:
- Tobias Pietzsch
-
-
Constructor Summary
Constructors Constructor Description MipmapInfo(double[][] resolutions, net.imglib2.realtransform.AffineTransform3D[] transforms, int[][] subdivisions)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetMaxLevel()Get the maximum mipmap level.intgetNumLevels()Get the number of mipmap levels (getMaxLevel()+ 1).double[][]getResolutions()Get the subsampling factors, indexed by mipmap level and dimension.int[][]getSubdivisions()Get the subdivision block sizes, indexed by mipmap level and dimension.net.imglib2.realtransform.AffineTransform3D[]getTransforms()Get the transformation from coordinates of the subsampled image of a mipmap level to coordinates of the full resolution image.StringtoString()
-
-
-
Constructor Detail
-
MipmapInfo
public MipmapInfo(double[][] resolutions, net.imglib2.realtransform.AffineTransform3D[] transforms, int[][] subdivisions)
-
-
Method Detail
-
getResolutions
public double[][] getResolutions()
Get the subsampling factors, indexed by mipmap level and dimension. For example, a subsampling factor of 2 means the respective mipmap level is scaled by 0.5 in the respective dimension.
-
getTransforms
public net.imglib2.realtransform.AffineTransform3D[] getTransforms()
Get the transformation from coordinates of the subsampled image of a mipmap level to coordinates of the full resolution image. The array of transforms is indexed by mipmap level.
-
getSubdivisions
public int[][] getSubdivisions()
Get the subdivision block sizes, indexed by mipmap level and dimension.
-
getMaxLevel
public int getMaxLevel()
Get the maximum mipmap level.
-
getNumLevels
public int getNumLevels()
Get the number of mipmap levels (getMaxLevel()+ 1).- Returns:
-
-