mirror of
https://github.com/artegoser/image-pluser-webui.git
synced 2025-02-22 20:23:15 +03:00
feat: some not working tabs
This commit is contained in:
parent
f338f7b5c9
commit
efcd1ccbac
4 changed files with 128 additions and 90 deletions
49
methods/stack_methods.py
Normal file
49
methods/stack_methods.py
Normal file
|
@ -0,0 +1,49 @@
|
|||
from PIL import Image, ImageChops
|
||||
from tqdm import tqdm
|
||||
|
||||
|
||||
def denoise(files):
|
||||
bias = 1
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files):
|
||||
|
||||
alpha = 1/bias
|
||||
|
||||
im2 = Image.open(file)
|
||||
im3 = Image.blend(image, im2, alpha)
|
||||
|
||||
image = im3
|
||||
|
||||
bias += 1
|
||||
|
||||
return image
|
||||
|
||||
|
||||
def startracks(files):
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files):
|
||||
im2 = Image.open(file)
|
||||
im3 = ImageChops.lighter(image, im2)
|
||||
image = im3
|
||||
|
||||
return image
|
||||
|
||||
|
||||
def noise_extractor(files):
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files, unit=' images'):
|
||||
im2 = Image.open(file)
|
||||
im3 = ImageChops.difference(image, im2)
|
||||
image = im3
|
||||
|
||||
return image
|
||||
|
||||
|
||||
def untrack(files):
|
||||
image = Image.open(files[0])
|
||||
for file in tqdm(files, unit=' images'):
|
||||
im2 = Image.open(file)
|
||||
im3 = ImageChops.darker(image, im2)
|
||||
image = im3
|
||||
|
||||
return image
|
Loading…
Add table
Reference in a new issue