Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/python/py_imagebufalgo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2397,9 +2397,9 @@ IBA_demosaic_ret(const ImageBuf& src, const std::string& pattern = "",
py::object white_balance = py::none(), ROI roi = ROI::All(),
int nthreads = 0)
{
py::gil_scoped_release gil;
std::vector<float> wb;
py_to_stdvector(wb, white_balance);
py::gil_scoped_release gil;
return ImageBufAlgo::demosaic(src,
{ { "pattern", pattern },
{ "algorithm", algorithm },
Expand All @@ -2416,9 +2416,9 @@ IBA_demosaic(ImageBuf& dst, const ImageBuf& src,
py::object white_balance = py::none(), ROI roi = ROI::All(),
int nthreads = 0)
{
py::gil_scoped_release gil;
std::vector<float> wb;
py_to_stdvector(wb, white_balance);
py::gil_scoped_release gil;
return ImageBufAlgo::demosaic(dst, src,
{ { "pattern", pattern },
{ "algorithm", algorithm },
Expand Down
Loading