mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2025-02-22 20:23:15 +03:00
feat: histogram matching
This commit is contained in:
parent
995481f437
commit
f6e3225afd
5 changed files with 47 additions and 4 deletions
|
@ -1,6 +1,4 @@
|
|||
from methods.stack_methods import (
|
||||
methods_funcs,
|
||||
)
|
||||
from methods.stack_methods import methods_funcs
|
||||
import os
|
||||
from processing.utils import generate_name
|
||||
|
||||
|
|
10
processing/two_to_one.py
Normal file
10
processing/two_to_one.py
Normal file
|
@ -0,0 +1,10 @@
|
|||
from methods.two_to_one_methods import methods_funcs
|
||||
from processing.utils import generate_name
|
||||
|
||||
|
||||
def two_to_one(img1, img2, method):
|
||||
img = methods_funcs[method](img1, img2)
|
||||
out_path = generate_name(subfolder="two_to_one")
|
||||
img.save(out_path)
|
||||
|
||||
return [out_path]
|
Loading…
Add table
Reference in a new issue