Package bdv.tools

Class InitializeViewerState


  • public class InitializeViewerState
    extends Object
    • Constructor Detail

      • InitializeViewerState

        public InitializeViewerState()
    • 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.
        This calls 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 display
        viewerHeight - height of the viewer display
        state - the ViewerState containing 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.
      • 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,
                                          ViewerState state,
                                          SetupAssignments setupAssignments)
        Deprecated.