-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlutUtils.py
31 lines (25 loc) · 1.07 KB
/
lutUtils.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
"""
This File is part of bLUe software.
Copyright (C) 2017 Bernard Virot <[email protected]>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Lesser General Public License as
published by the Free Software Foundation, version 3.
This program is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Lesser Public License for more details.
You should have received a copy of the GNU Lesser General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
"""
#####################################
# Initializes LUT3D constants and objects
#####################################
import numpy as np
from bLUeCore.bLUeLUT3D import LUT3D
LUTSIZE = LUT3D.defaultSize
LUT3DIdentity = LUT3D(None, size=LUTSIZE)
LUTSTEP = LUT3DIdentity.step
LUT3D_ORI = LUT3DIdentity.LUT3DArray
a,b,c,d = LUT3D_ORI.shape
LUT3D_SHADOW = np.zeros((a,b,c,d+1))
LUT3D_SHADOW[:,:,:,:3] = LUT3D_ORI