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 BooleanalreadyUsedintflagJFrameframeintheightMatimgBooleanimgToBeResizedJLabellblStringnameBooleanpositionToBeChangedintwidthstatic intWINDOW_AUTOSIZEstatic intWINDOW_NORMALBooleanwindowToBeResizedintxinty
-
Constructor Summary
Constructors Constructor Description ImageWindow(String name, int flag)ImageWindow(String name, Mat img)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SizekeepAspectRatioSize(int original_width, int original_height, int bound_width, int bound_height)voidsetFrameLabelVisible(JFrame frame, JLabel lbl)voidsetMat(Mat img)voidsetNewDimension(int width, int height)voidsetNewPosition(int x, int y)
-
-
-
Field Detail
-
WINDOW_NORMAL
public static final int WINDOW_NORMAL
- See Also:
- Constant Field Values
-
WINDOW_AUTOSIZE
public static final int WINDOW_AUTOSIZE
- See Also:
- Constant Field Values
-
name
public String name
-
img
public Mat img
-
alreadyUsed
public Boolean alreadyUsed
-
imgToBeResized
public Boolean imgToBeResized
-
windowToBeResized
public Boolean windowToBeResized
-
positionToBeChanged
public Boolean positionToBeChanged
-
frame
public JFrame frame
-
lbl
public JLabel lbl
-
flag
public int flag
-
x
public int x
-
y
public int y
-
width
public int width
-
height
public int height
-
-
Method Detail
-
keepAspectRatioSize
public static Size keepAspectRatioSize(int original_width, int original_height, int bound_width, int bound_height)
-
setMat
public void setMat(Mat img)
-
setNewDimension
public void setNewDimension(int width, int height)
-
setNewPosition
public void setNewPosition(int x, int y)
-
-