Skip to content

Commit 0343eba

Browse files
committed
Merge branch 'feature/v0.1.4' into develop
2 parents d8dcc86 + 7bf4042 commit 0343eba

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

colour_checker_detection/detection/tests/test_segmentation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ def test_as_8_bit_BGR_image(self):
109109
image_o = as_8_bit_BGR_image(image_i)
110110

111111
self.assertEqual(image_o.dtype, np.uint8)
112-
np.testing.assert_almost_equal(
112+
np.testing.assert_array_almost_equal(
113113
image_o[16, 16, ...],
114114
(cctf_encoding(image_i[16, 16, ::-1]) * 255).astype(np.uint8),
115115
)

colour_checker_detection/examples/examples_detection.ipynb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,10 @@
270270
"REFERENCE_COLOUR_CHECKER = colour.CCS_COLOURCHECKERS[\n",
271271
" 'ColorChecker24 - After November 2014']\n",
272272
"\n",
273+
"# NOTE: The reference swatches values as produced by the \"colour.XYZ_to_RGB\"\n",
274+
"# definition are linear by default.\n",
275+
"# See https://github.com/colour-science/colour-checker-detection/discussions/59\n",
276+
"# for more information.\n",
273277
"REFERENCE_SWATCHES = colour.XYZ_to_RGB(\n",
274278
" colour.xyY_to_XYZ(list(REFERENCE_COLOUR_CHECKER.data.values())),\n",
275279
" REFERENCE_COLOUR_CHECKER.illuminant, D65,\n",
@@ -411,7 +415,7 @@
411415
"name": "python",
412416
"nbconvert_exporter": "python",
413417
"pygments_lexer": "ipython3",
414-
"version": "3.9.9"
418+
"version": "3.9.12"
415419
}
416420
},
417421
"nbformat": 4,

0 commit comments

Comments
 (0)