We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
convolve_2d fails to convolve images of type with channel type float32_t.
It should work, as it does for other image types.
#include <boost/gil.hpp> #include <vector> namespace gil = boost::gil; int main() { gil::gray32f_image_t img_in(25, 25); gil::gray32f_image_t img_out(img_in.dimensions()); std::vector<float> vec{0,0,0,0,1,0,0,0,0}; gil::detail::kernel_2d<float> kernel(vec.begin(), vec.size(), 1, 1); gil::detail::convolve_2d(view(img_in), kernel, view(img_out)); return 0; }
<boost/version.hpp>
The text was updated successfully, but these errors were encountered:
adding [0], on line 376, seems to work. Perhaps the compiler doesn't like doing two implicit conversions.
aux_total += src_view(col_boundary, row_boundary)[0] * kernel.at(flip_ker_row, flip_ker_col);
Sorry, something went wrong.
Fix convolve_2d for images with float32_t channel model (#577)
c7aba23
Fixes #575
Successfully merging a pull request may close this issue.
Actual behavior
convolve_2d fails to convolve images of type with channel type float32_t.
Expected behavior
It should work, as it does for other image types.
C++ Minimal Working Example
Environment
<boost/version.hpp>
): 107500The text was updated successfully, but these errors were encountered: