Class ShowImages


  • public class ShowImages
    extends java.lang.Object
    Displays images in a new window.
    • Constructor Summary

      Constructors 
      Constructor Description
      ShowImages()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static javax.swing.JFrame setupWindow​(javax.swing.JComponent component, java.lang.String title, boolean closeOnExit)
      Sets up the window but doesn't show it.
      static void showBlocking​(boofcv.struct.image.ImageBase<?> img, java.lang.String title, long milliseconds)
      Show a window for a set amount of time.
      static void showDialog​(java.awt.image.BufferedImage img)
      Creates a dialog window showing the specified image.
      static ImageGridPanel showGrid​(int numColumns, java.lang.String title, java.awt.image.BufferedImage... images)
      Shows a set of images in a grid pattern.
      static ImagePanel showWindow​(boofcv.struct.image.ImageBase<?> img, java.lang.String title)  
      static ImagePanel showWindow​(boofcv.struct.image.ImageGray<?> img, ShowImages.Colorization type, java.lang.String title, boolean closeOnExit)  
      static ImagePanel showWindow​(java.awt.image.BufferedImage img, java.lang.String title)
      Creates a window showing the specified image.
      static ImagePanel showWindow​(java.awt.image.BufferedImage img, java.lang.String title, boolean closeOnExit)
      Creates a window showing the specified image.
      static javax.swing.JFrame showWindow​(javax.swing.JComponent component, java.lang.String title)  
      static javax.swing.JFrame showWindow​(javax.swing.JComponent component, java.lang.String title, boolean closeOnExit)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ShowImages

        public ShowImages()
    • Method Detail

      • showDialog

        public static void showDialog​(java.awt.image.BufferedImage img)
        Creates a dialog window showing the specified image. The function will not exit until the user clicks ok
      • showGrid

        public static ImageGridPanel showGrid​(int numColumns,
                                              java.lang.String title,
                                              java.awt.image.BufferedImage... images)
        Shows a set of images in a grid pattern.
        Parameters:
        numColumns - How many columns are in the grid
        title - Number of the window
        images - List of images to show
        Returns:
        Display panel
      • showWindow

        public static ImagePanel showWindow​(java.awt.image.BufferedImage img,
                                            java.lang.String title)
        Creates a window showing the specified image.
      • showWindow

        public static ImagePanel showWindow​(java.awt.image.BufferedImage img,
                                            java.lang.String title,
                                            boolean closeOnExit)
        Creates a window showing the specified image.
      • showWindow

        public static ImagePanel showWindow​(boofcv.struct.image.ImageBase<?> img,
                                            java.lang.String title)
      • showBlocking

        public static void showBlocking​(boofcv.struct.image.ImageBase<?> img,
                                        java.lang.String title,
                                        long milliseconds)
        Show a window for a set amount of time. Blocks until that time has elapsed
      • showWindow

        public static javax.swing.JFrame showWindow​(javax.swing.JComponent component,
                                                    java.lang.String title)
      • showWindow

        public static javax.swing.JFrame showWindow​(javax.swing.JComponent component,
                                                    java.lang.String title,
                                                    boolean closeOnExit)
      • setupWindow

        public static javax.swing.JFrame setupWindow​(javax.swing.JComponent component,
                                                     java.lang.String title,
                                                     boolean closeOnExit)
        Sets up the window but doesn't show it. Must be called in a GUI thread
      • showWindow

        public static ImagePanel showWindow​(boofcv.struct.image.ImageGray<?> img,
                                            ShowImages.Colorization type,
                                            java.lang.String title,
                                            boolean closeOnExit)