- java.lang.Object
-
- bdv.tools.InitializeViewerState
-
public class InitializeViewerState extends Object
-
-
Constructor Summary
Constructors Constructor Description InitializeViewerState()
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static BoundsestimateSourceRange(Source<?> source, int timepoint, double cumulativeMinCutoff, double cumulativeMaxCutoff)static voidinitBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, AbstractViewerPanel viewer, SetupAssignments setupAssignments)Deprecated.static voidinitBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, SetupAssignments setupAssignments)Deprecated.static voidinitBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerFrame viewerFrame)static voidinitBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, SetupAssignments setupAssignments)Deprecated.static voidinitBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, ConverterSetups converterSetups)static net.imglib2.realtransform.AffineTransform3DinitTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, ViewerState state)Deprecated.static net.imglib2.realtransform.AffineTransform3DinitTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, ViewerState state)Get a "good" initial viewer transform.static voidinitTransform(AbstractViewerPanel viewer)Set a "good" initial viewer transform.
-
-
-
Method Detail
-
initTransform
public static void initTransform(AbstractViewerPanel viewer)
Set a "good" initial viewer transform. The viewer transform is chosen such that for the first source,- the XY plane is aligned with the screen plane,
- the z = dim_z / 2 slice is shown,
- centered and scaled such that the full dim_x by dim_y is visible.
initTransform(int, int, boolean, ViewerState), using the size of the viewer's display component.- Parameters:
viewer- the viewer (containing at least one source) to have its transform set.
-
initTransform
public static net.imglib2.realtransform.AffineTransform3D initTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, ViewerState state)
Get a "good" initial viewer transform. The viewer transform is chosen such that for the first source,- the XY plane is aligned with the screen plane,
- the z = dim_z / 2 slice is shown,
- centered and scaled such that the full dim_x by dim_y is visible.
- Parameters:
viewerWidth- width of the viewer displayviewerHeight- height of the viewer displaystate- theViewerStatecontaining at least one source.- Returns:
- proposed initial viewer transform.
-
initBrightness
public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerFrame viewerFrame)
-
initBrightness
public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, ConverterSetups converterSetups)
-
estimateSourceRange
public static Bounds estimateSourceRange(Source<?> source, int timepoint, double cumulativeMinCutoff, double cumulativeMaxCutoff)
- Parameters:
cumulativeMinCutoff- fraction of pixels that are allowed to be saturated at the lower end of the range.cumulativeMaxCutoff- fraction of pixels that are allowed to be saturated at the upper end of the range.
-
initTransform
@Deprecated public static net.imglib2.realtransform.AffineTransform3D initTransform(int viewerWidth, int viewerHeight, boolean zoomedIn, ViewerState state)
Deprecated.
-
initBrightness
@Deprecated public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, SetupAssignments setupAssignments)
Deprecated.
-
initBrightness
@Deprecated public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, AbstractViewerPanel viewer, SetupAssignments setupAssignments)
Deprecated.
-
initBrightness
@Deprecated public static void initBrightness(double cumulativeMinCutoff, double cumulativeMaxCutoff, ViewerState state, SetupAssignments setupAssignments)
Deprecated.
-
-