Class BDVUtils
java.lang.Object
net.preibisch.mvrecon.fiji.spimdata.explorer.bdv.BDVUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidforEachAbstractSpimSource(Collection<? extends bdv.viewer.SourceAndConverter<?>> sources, BiConsumer<? super bdv.viewer.SourceAndConverter<?>, ? super bdv.AbstractSpimSource<?>> action) static voidforEachTransformedSource(Collection<? extends bdv.viewer.SourceAndConverter<?>> sources, BiConsumer<? super bdv.viewer.SourceAndConverter<?>, ? super bdv.tools.transformation.TransformedSource<?>> action) static voidscaleDisplayRangeMax(bdv.BigDataViewer bdv, double factor, boolean visibleOnly) Multiply the display-range maximum (white point) of BDV sources byfactor, leaving the minimum (black point) untouched.
-
Constructor Details
-
BDVUtils
public BDVUtils()
-
-
Method Details
-
scaleDisplayRangeMax
Multiply the display-range maximum (white point) of BDV sources byfactor, leaving the minimum (black point) untouched. A factor < 1 lowers the max (image gets brighter); a factor > 1 raises it (image gets darker).- Parameters:
bdv- the viewer (no-op ifnull)factor- multiplicative step applied to each source's current maxvisibleOnly- iftrueonly currently active (visible) sources are changed; iffalseevery source in the viewer is changed
-
forEachAbstractSpimSource
public static void forEachAbstractSpimSource(Collection<? extends bdv.viewer.SourceAndConverter<?>> sources, BiConsumer<? super bdv.viewer.SourceAndConverter<?>, ? super bdv.AbstractSpimSource<?>> action) -
forEachTransformedSource
public static void forEachTransformedSource(Collection<? extends bdv.viewer.SourceAndConverter<?>> sources, BiConsumer<? super bdv.viewer.SourceAndConverter<?>, ? super bdv.tools.transformation.TransformedSource<?>> action)
-