Skip to content

Commit d1d84d2

Browse files
committed
Merge branch 'feature/v0.2.1' into develop
2 parents b69bd7e + ad00a22 commit d1d84d2

32 files changed

+1155
-785
lines changed

.github/workflows/continuous-integration-quality-unit-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
matrix:
1010
os: [macOS-latest, ubuntu-20.04, windows-latest]
1111
python-version: [3.8, 3.9, '3.10']
12+
exclude:
13+
- os: windows-latest
14+
python-version: 3.8
1215
fail-fast: false
1316
runs-on: ${{ matrix.os }}
1417
steps:

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ Colour - HDRI
2121
.. end-badges
2222
2323
A `Python <https://www.python.org/>`__ package implementing various
24-
HDRI / Radiance image processing algorithms.
24+
HDRI processing algorithms.
2525

2626
It is open source and freely available under the
2727
`New BSD License <https://opensource.org/licenses/BSD-3-Clause>`__ terms.
@@ -39,7 +39,7 @@ Features
3939

4040
The following features are available:
4141

42-
- HDRI / Radiance Image Generation
42+
- HDRI Generation
4343
- Debevec (1997) Camera Response Function Computation
4444
- Grossberg (2003) Histogram Based Image Sampling
4545
- Variance Minimization Light Probe Sampling

colour_hdri/__init__.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
Colour - HDRI
33
=============
44
5-
HDRI - Radiance image processing algorithms for *Python*.
5+
HDRI processing algorithms for *Python*.
66
77
Subpackages
88
-----------
99
- calibration: Camera calibration computations.
1010
- distortion: Lens vignette characterisation & correction.
1111
- exposure: Exposure computations.
1212
- examples: Examples for the sub-packages.
13-
- generation: HDRI / radiance image generation.
13+
- generation: HDRI Generation.
1414
- models: Colour models conversion.
1515
- plotting: Diagrams, figures, etc...
1616
- process: Image conversion helpers.
@@ -84,7 +84,7 @@
8484
normal_distribution_function,
8585
hat_function,
8686
weighting_function_Debevec1997,
87-
image_stack_to_radiance_image,
87+
image_stack_to_HDRI,
8888
)
8989
from .calibration import (
9090
absolute_luminance_calibration_Lagarde2016,
@@ -183,7 +183,7 @@
183183
"normal_distribution_function",
184184
"hat_function",
185185
"weighting_function_Debevec1997",
186-
"image_stack_to_radiance_image",
186+
"image_stack_to_HDRI",
187187
]
188188
__all__ += [
189189
"absolute_luminance_calibration_Lagarde2016",
@@ -292,6 +292,10 @@ def __getattr__(self, attribute) -> Any:
292292
"colour_hdri.camera_space_to_XYZ_matrix",
293293
"colour_hdri.matrix_camera_space_to_XYZ",
294294
],
295+
[
296+
"colour_hdri.image_stack_to_radiance_image",
297+
"colour_hdri.image_stack_to_HDRI",
298+
],
295299
]
296300
}
297301
"""Defines the *colour_hdri* package API changes."""

colour_hdri/calibration/absolute_luminance.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,8 +77,8 @@ def upper_hemisphere_illuminance_Lagarde2016(
7777

7878
theta = np.linspace(0, 1, height) * np.pi
7979

80-
theta_cos = np.cos(theta)[..., np.newaxis]
81-
theta_sin = np.sin(theta)[..., np.newaxis]
80+
theta_cos = np.cos(theta)[..., None]
81+
theta_sin = np.sin(theta)[..., None]
8282

8383
E_v = np.sum(np.where(theta_cos > 0, L * theta_cos * theta_sin, 0))
8484

@@ -135,7 +135,7 @@ def upper_hemisphere_illuminance_weights_Lagarde2016(
135135
w = np.zeros((height, width))
136136

137137
theta = np.linspace(0, 1, height) * np.pi
138-
theta = np.tile(theta[..., np.newaxis], (1, width))
138+
theta = np.tile(theta[..., None], (1, width))
139139

140140
theta_cos = np.cos(theta)
141141
theta_sin = np.sin(theta)

colour_hdri/distortion/vignette.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,10 +154,10 @@ def apply_radial_gradient(
154154
samples_y += offset_y - 0.5
155155

156156
distance = np.sqrt(
157-
(samples_x**2)[..., np.newaxis] + (samples_y**2)[np.newaxis, ...]
157+
(samples_x**2)[..., None] + (samples_y**2)[None, ...]
158158
)
159159

160-
image *= 1 - distance[..., np.newaxis] * intensity
160+
image *= 1 - distance[..., None] * intensity
161161
image **= bias
162162

163163
image += np.random.random(image.shape) * noise

colour_hdri/examples/examples_absolute_luminance_calibration_and_photometric_exposure_conversion.ipynb

Lines changed: 17 additions & 28 deletions
Large diffs are not rendered by default.

colour_hdri/examples/examples_adobe_dng_sdk_colour_processing.ipynb

Lines changed: 35 additions & 48 deletions
Large diffs are not rendered by default.

colour_hdri/examples/examples_advanced_processing_with_an_input_device_transform.ipynb

Lines changed: 419 additions & 0 deletions
Large diffs are not rendered by default.

colour_hdri/examples/examples_global_tonemapping_operators.ipynb

Lines changed: 41 additions & 39 deletions
Large diffs are not rendered by default.

colour_hdri/examples/examples_merge_from_ldr_files.ipynb

Lines changed: 40 additions & 63 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)