Views
Main Views
- class Ui_Controller.Controller(*args: Any, **kwargs: Any)[source]
-
Bases:
QMainWindow
The controller class to control UI MainWindow
construction method
- init_ori_ratio(image)[source]
-
Calculate the initial ratio of the image. :param ratio_x = ratio width between image and ui window.: :param ratio_y = ratio height between image and ui window.: :param center = find the center image on window user interface.:
- Returns:
-
ratio_y: center:
- Return type:
-
ratio_x
-
showing the menu image when release left click.
Ui_Mainwindow
Ui_Utils
- Ui_Utils.select_file(title, dir_path, file_filter)[source]
-
find the file path from the directory computer
- Parameters:
-
-
title – the title window of open dialog
-
file_filter – determine the specific file want to search
-
dir_path – Navigate to specific directory
-
- Return type:
-
file_path
- Ui_Utils.Rotate(src, angle, center=None, scale=1.0)[source]
-
Turn an image in a clockwise or counterclockwise direction.
- Parameters:
-
-
src – original image
-
angle – the value angle for turn the image
-
center – determine the specific coordinate to rotate image
-
scale – scale image
-
- Returns:
-
rotated image
- Return type:
-
dst image
- Ui_Utils.read_image(image_path)[source]
-
Reading the image from given file path
- Parameters:
-
image_path – image to be read from the image_path
- Return type:
-
img
View_Anypoint
- class View_Anypoint.AnyPoint(MainWindow)[source]
-
Bases:
object
Anypoint class to process image on anypoint view
constructed method
- connectToButton()[source]
-
the method for connected function and event on main window user interface.
View_Panorama
View_ShowResult
- class View_ShowResult.ShowImageResult(MainWindow)[source]
-
Bases:
object
Class to Show Image Result on user interface. :param parent : main window :type parent : -
Constructed method
View_Window
- class View_Window.ViewWindow(MainWindow)[source]
-
Bases:
object
Class to control the window in user interface :param parent= Main window :type parent = -
Constructed method.
- show_Maximized()[source]
-
To showing the result image in maximize window. it will hide the original label image.