ImageWindow 类


  • public final class ImageWindow
    extends java.lang.Object
    此类旨在创建和操作 HighGui 类将使用的窗口。
    • 字段详情

      • WINDOW_NORMAL

        public static final int WINDOW_NORMAL
        另请参见
        常量字段值
      • WINDOW_AUTOSIZE

        public static final int WINDOW_AUTOSIZE
        另请参见
        常量字段值
      • name

        public java.lang.String name
      • img

        public Mat img
      • alreadyUsed

        public java.lang.Boolean alreadyUsed
      • imgToBeResized

        public java.lang.Boolean imgToBeResized
      • windowToBeResized

        public java.lang.Boolean windowToBeResized
      • positionToBeChanged

        public java.lang.Boolean positionToBeChanged
      • frame

        public javax.swing.JFrame frame
      • lbl

        public javax.swing.JLabel lbl
      • flag

        public int flag
      • x

        public int x
      • y

        public int y
      • width

        public int width
      • height

        public int height
    • 构造函数详情

      • ImageWindow

        public ImageWindow​(java.lang.String name,
                           Mat img)
      • ImageWindow

        public ImageWindow​(java.lang.String name,
                           int flag)
    • 方法详情

      • keepAspectRatioSize

        public static Size keepAspectRatioSize​(int original_width,
                                               int original_height,
                                               int bound_width,
                                               int bound_height)
      • setMat

        public void setMat​(Mat img)
      • setFrameLabelVisible

        public void setFrameLabelVisible​(javax.swing.JFrame frame,
                                         javax.swing.JLabel lbl)
      • setNewDimension

        public void setNewDimension​(int width,
                                    int height)
      • setNewPosition

        public void setNewPosition​(int x,
                                   int y)