Class SpimDataUtils.CalibratedSource<T extends net.imglib2.type.numeric.NumericType<T>>

java.lang.Object
bdv.util.AbstractSource<T>
bdv.util.RandomAccessibleIntervalSource<T>
sc.fiji.snt.io.SpimDataUtils.CalibratedSource<T>
Type Parameters:
T - the pixel type
All Implemented Interfaces:
bdv.viewer.Source<T>
Enclosing class:
SpimDataUtils

public static class SpimDataUtils.CalibratedSource<T extends net.imglib2.type.numeric.NumericType<T>> extends bdv.util.RandomAccessibleIntervalSource<T>
Wraps a RandomAccessibleIntervalSource and overrides getVoxelDimensions() to carry the physical unit (e.g. "µm"). Without this, BDV's ScaleBarOverlayRenderer reads "pixel" from RandomAccessibleIntervalSource.getVoxelDimensions() and the scale bar label is wrong even when calibration is applied.