Combine the codes into one program with 5 buttons in Python (PyCharm)
I have written code in Jupyter Notebook, but I need to combine all parts of that code into one program with an interface that should have 6 buttons. Specifically, when button 1 is pressed: the initial images should be displayed, when button 2 is pressed: the images after gradation correction should be displayed, when button 3 is pressed: the images in monochrome grayscale format should be displayed, when button 4 is pressed: monochrome images processed according to the specified algorithms should be displayed:
a. Fmax = max(Vc; IRc)
b. Fmin = min(Vc; IRc)
c. Fc = [(Vc3 + IRc3)/2]1/3 – cubic mean
d. Fq = [(Vc2 + IRc2)/2]1/2 – quadratic mean
e. Fa = (Vc + IRc)/2 – arithmetic mean
f. Fg = (Vc×IRc)1/2 – geometric mean
g. Fh = (2×Vc×IRc)/(Vc + IRc) – harmonic mean
h. Fch = 2×Fa – Fh = (Vc2 + IRc2)/(Vc + IRc) – contra-harmonic mean
, when button 5 is pressed: there should be an option to choose a palette that will be applied to the processed monochrome images according to the specified algorithms (palettes - Rainbow, Fire, Thermometer, Watermelon), when button 6 is pressed: there should be an option to choose the synthesis of color RGB images according to the schemes:
a. [RGB] = [IRc; IRc; F]
b. [RGB] = [IRc; F; F]
c. [RGB] = [IRc; IRc; F/2]
d. [RGB] = [IRc; F; F/2]
e. [RGB] = [IRc; F/2; F]
f. [RGB] = [IRc; F/2; F/2]
It may also be necessary to edit the code I provided. (The code is in Copy of fh_imgs.ipynb - Colab file). The files also contain the initial images, as well as the technical task based on which the code was written in Jupyter Notebook and which needs to be slightly edited.
The project needs to be completed by October 22-23, 2024
Applications 4