Skip to content

Commit 3f5c26d

Browse files
committed
Image processing bug fix
1 parent ad1fd49 commit 3f5c26d

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/image_processing.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from math import sqrt, ceil
77
import numpy as np
88

9-
from src.core import FilterSystem, SpectralCube, PhotospectralCube, ColorLine, ColorImage, sun_norm
9+
from src.core import FilterSystem, SpectralCube, PhotospectralCube, ColorLine, ColorImage, sun_norm, xyz_color_system
1010
import src.image_import as ii
1111

1212

@@ -62,7 +62,7 @@ def image_parser(
6262
img_chunk = ColorLine.from_spectral_data(chunk)
6363
img_array[:,i*px_upper_limit:j*px_upper_limit] = img_chunk.br
6464
log(f'Color calculated for {j} chunks out of {chunk_num}')
65-
img = ColorImage(img_array.reshape(3, cube.width, cube.height))
65+
img = ColorImage(img_array.reshape(3, cube.width, cube.height), xyz_color_system)
6666
if upscale and px_num < px_lower_limit and (times := round(sqrt(px_lower_limit / px_num))) != 1:
6767
log('Upscaling')
6868
img = img.upscale(times)

0 commit comments

Comments
 (0)