Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Aug 26, 2024
1 parent 25f7afd commit 57f19b1
Showing 1 changed file with 20 additions and 13 deletions.
33 changes: 20 additions & 13 deletions colour_demosaicing/examples/examples_bayer.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@
" demosaicing_CFA_Bayer_bilinear,\n",
" demosaicing_CFA_Bayer_Malvar2004,\n",
" demosaicing_CFA_Bayer_Menon2007,\n",
" mosaicing_CFA_Bayer)\n",
" mosaicing_CFA_Bayer,\n",
")\n",
"\n",
"colour.plotting.colour_style()\n",
"\n",
Expand Down Expand Up @@ -92,11 +93,13 @@
],
"source": [
"LIGHTHOUSE_IMAGE = colour.io.read_image(\n",
" os.path.join(ROOT_RESOURCES_EXAMPLES, 'bayer', 'Lighthouse.exr'))\n",
" os.path.join(ROOT_RESOURCES_EXAMPLES, \"bayer\", \"Lighthouse.exr\")\n",
")\n",
"\n",
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(LIGHTHOUSE_IMAGE),\n",
" text_kwargs={'text': 'Lighthouse - R914108 - Kodak'});"
" text_kwargs={\"text\": \"Lighthouse - R914108 - Kodak\"},\n",
");"
]
},
{
Expand Down Expand Up @@ -140,12 +143,13 @@
"CFA = mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE)\n",
"\n",
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(CFA),\n",
" text_kwargs={'text': 'Lighthouse - CFA - RGGB'})\n",
" colour.cctf_encoding(CFA), text_kwargs={\"text\": \"Lighthouse - CFA - RGGB\"}\n",
")\n",
"\n",
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, 'BGGR')), \n",
" text_kwargs={'text': 'Lighthouse - CFA - BGGR'});"
" colour.cctf_encoding(mosaicing_CFA_Bayer(LIGHTHOUSE_IMAGE, \"BGGR\")),\n",
" text_kwargs={\"text\": \"Lighthouse - CFA - BGGR\"},\n",
");"
]
},
{
Expand Down Expand Up @@ -175,8 +179,9 @@
],
"source": [
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)), \n",
" text_kwargs={'text': 'Lighthouse - Demosaicing - Bilinear'});"
" colour.cctf_encoding(demosaicing_CFA_Bayer_bilinear(CFA)),\n",
" text_kwargs={\"text\": \"Lighthouse - Demosaicing - Bilinear\"},\n",
");"
]
},
{
Expand Down Expand Up @@ -208,8 +213,9 @@
],
"source": [
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)), \n",
" text_kwargs={'text': 'Lighthouse - Demosaicing - Malvar (2004)'});"
" colour.cctf_encoding(demosaicing_CFA_Bayer_Malvar2004(CFA)),\n",
" text_kwargs={\"text\": \"Lighthouse - Demosaicing - Malvar (2004)\"},\n",
");"
]
},
{
Expand Down Expand Up @@ -239,8 +245,9 @@
],
"source": [
"colour.plotting.plot_image(\n",
" colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)), \n",
" text_kwargs={'text': 'Lighthouse - Demosaicing - Menon (2007)'});"
" colour.cctf_encoding(demosaicing_CFA_Bayer_Menon2007(CFA)),\n",
" text_kwargs={\"text\": \"Lighthouse - Demosaicing - Menon (2007)\"},\n",
");"
]
}
],
Expand Down

0 comments on commit 57f19b1

Please sign in to comment.