feat: histogram matching

This commit is contained in:
Artemy 2023-04-30 21:01:03 +03:00
parent 995481f437
commit f6e3225afd
5 changed files with 47 additions and 4 deletions

View file

@ -0,0 +1,17 @@
import gradio as gr
from processing.two_to_one import two_to_one
from methods.two_to_one_methods import methods
with gr.Blocks() as app:
gr.Markdown("Get one image from two.")
with gr.Row():
with gr.Column():
img1 = gr.Image()
img2 = gr.Image()
method = gr.Dropdown(choices=methods, value=methods[0], label="Method")
submit = gr.Button("Submit")
with gr.Column():
output = gr.Gallery()
submit.click(two_to_one, inputs=[img1, img2, method], outputs=[output])

View file

@ -1 +1,7 @@
tabs = ["Stacking", "Bulk processing", "Images to video", "Video to images"]
tabs = [
"Stacking",
"Bulk processing",
"Two images to one",
"Images to video",
"Video to images",
]