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,12 @@
from skimage.exposure import match_histograms
import numpy as np
from PIL import Image
def histogram_matching(img1, img2):
return Image.fromarray(match_histograms(img1, img2, channel_axis=-1))
methods_funcs = {"Histogram matching": histogram_matching}
methods = list(methods_funcs.keys())