Add datasets/raise/split_and_compare_prnus_of_subgroups.py

This commit is contained in:
Benjamin Loison 2024-04-02 18:45:40 +02:00
parent 90a806a7e2
commit ea00f42c58
Signed by: Benjamin_Loison
SSH Key Fingerprint: SHA256:BtnEgYTlHdOg1u+RmYcDE0mnfz1rhv5dSbQ2gyxW8B8

View File

@ -0,0 +1,12 @@
from PIL import Image
import numpy as np
import sys
sys.path.insert(0, '../../algorithms/image_utils/')
from image_utils import showImageWithMatplotlib
imagePath = 'flat-field/TIF/flat_001.tif'
imagePil = Image.open(imagePath).convert('F')
imageNpArray = np.array(imagePil)
showImageWithMatplotlib(imageNpArray)