Laplace_Screen module

class Laplace_Screen.Ui_Dialog_8[source]

Bases: object

File_Select()[source]

Main Logical function which does the following: 1. Helps user in choosing input for image file (supported file formats - .jpg, .jpeg, .gif, .png) 2. Error handling if user doesn’t choose supported file. 3. Displays the image onto the GUI label layout (if size exceeds, then scroll bars appear in the Label). 4. The user can Save the generated image in the directory they want on the machine.

Save_Directory()[source]

Helps in saving and writing the image in the directory the user wants to save in.

laplacian_filter(img, kernel_size=3)[source]

Laplace Filter applied to user input image when the function gets called.

Returns: img: An image which contains the Laplacian edge of the user input image.

retranslateUi(Dialog_8)[source]

Setting the UI layouts and components - labels, textfields, pushbuttons, etc. Also adding functionality for redirecting buttons to respective functions on being clicked.

setupUi(Dialog_8)[source]

setupUI defined for the screen auto-generated by the PyQt5 editor.