Skip to content

Commit

Permalink
Merge branch 'feature/v0.1.4' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
KelSolaar committed Jul 16, 2022
2 parents d8dcc86 + 7bf4042 commit 0343eba
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ def test_as_8_bit_BGR_image(self):
image_o = as_8_bit_BGR_image(image_i)

self.assertEqual(image_o.dtype, np.uint8)
np.testing.assert_almost_equal(
np.testing.assert_array_almost_equal(
image_o[16, 16, ...],
(cctf_encoding(image_i[16, 16, ::-1]) * 255).astype(np.uint8),
)
Expand Down
6 changes: 5 additions & 1 deletion colour_checker_detection/examples/examples_detection.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,10 @@
"REFERENCE_COLOUR_CHECKER = colour.CCS_COLOURCHECKERS[\n",
" 'ColorChecker24 - After November 2014']\n",
"\n",
"# NOTE: The reference swatches values as produced by the \"colour.XYZ_to_RGB\"\n",
"# definition are linear by default.\n",
"# See https://github.com/colour-science/colour-checker-detection/discussions/59\n",
"# for more information.\n",
"REFERENCE_SWATCHES = colour.XYZ_to_RGB(\n",
" colour.xyY_to_XYZ(list(REFERENCE_COLOUR_CHECKER.data.values())),\n",
" REFERENCE_COLOUR_CHECKER.illuminant, D65,\n",
Expand Down Expand Up @@ -411,7 +415,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.9"
"version": "3.9.12"
}
},
"nbformat": 4,
Expand Down

0 comments on commit 0343eba

Please sign in to comment.