Apply Context-Adaptive Interpolator
This commit is contained in:
@@ -15,7 +15,7 @@ from context_adaptive_interpolator import contextAdaptiveInterpolator
|
||||
|
||||
sys.path.insert(0, '../../algorithms/image_utils/')
|
||||
|
||||
from image_utils import showImageWithMatplotlib, randomGaussianImage
|
||||
from image_utils import showImageWithMatplotlib, randomGaussianImage, toPilImage
|
||||
from tqdm import tqdm
|
||||
|
||||
IMAGE_SIZE = 64
|
||||
@@ -37,9 +37,6 @@ imagesWithPrnu = [[imageWithoutPrnu + prnus[phoneIndex] for imageWithoutPrnu in
|
||||
|
||||
allImages = np.max([np.max(imagesWithoutPrnu) + np.max(prnus) + np.max(imagesWithPrnu)])
|
||||
|
||||
def toPilImage(npArray):
|
||||
return Image.fromarray(npArray)
|
||||
|
||||
def showImageWithPil(npArray):
|
||||
npArray -= npArray.min()
|
||||
npArray = (npArray / npArray.max()) * 255
|
||||
|
Reference in New Issue
Block a user