Package org.opencv.highgui
Class ImageWindow
java.lang.Object
org.opencv.highgui.ImageWindow
public final class ImageWindow extends Object
This class was designed to create and manipulate
the Windows to be used by the HighGui class.
-
Field Summary
Fields Modifier and Type Field Description Boolean
alreadyUsed
int
flag
JFrame
frame
int
height
Mat
img
Boolean
imgToBeResized
JLabel
lbl
String
name
Boolean
positionToBeChanged
int
width
static int
WINDOW_AUTOSIZE
static int
WINDOW_NORMAL
Boolean
windowToBeResized
int
x
int
y
-
Constructor Summary
Constructors Constructor Description ImageWindow(String name, int flag)
ImageWindow(String name, Mat img)
-
Method Summary
Modifier and Type Method Description static Size
keepAspectRatioSize(int original_width, int original_height, int bound_width, int bound_height)
void
setFrameLabelVisible(JFrame frame, JLabel lbl)
void
setMat(Mat img)
void
setNewDimension(int width, int height)
void
setNewPosition(int x, int y)
-
Field Details
-
Constructor Details
-
Method Details
-
keepAspectRatioSize
public static Size keepAspectRatioSize(int original_width, int original_height, int bound_width, int bound_height) -
setMat
-
setFrameLabelVisible
-
setNewDimension
-
setNewPosition
-