-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
New issue
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
MSVC compilation error in bilateral_upsampling.hpp #2016
Comments
Don't know why, but it makes no sense.
It still works for me with Eigen 3.3 and GCC 5.4.
These two issues are unrelated, I see no reason to make one dependent on another. Also this one is trivial, we can merge it right away. |
Ok, one more question - d_color is float too. We cast the sum of color channel diffs (int if I understand correctly) to float, then we cast it to Eigen index. Would it be correct to make d_color of Eigen index type and just cast to it only once (sum)? |
I think that in terms of semantics that piece of code is alright. The Your code has less casts, so probably marginally faster. But it's a minor thing anyway. |
When I compile pcl surface I get this error:
'initializing': cannot convert from 'Eigen::IndexedView<Derived,float,float>' to 'float'
in line 112:
The fix is to make dx and dy int, not float. They are used as indices in matrix and compiler cannot choose the correct overload
Why do dx and dy variables float at all? And how does it work before?
Visual Studio 2015
Eigen 3.3.90 (latest from mercurial repo)
I will create a pull request as soon as my last pull request will be approved
The text was updated successfully, but these errors were encountered: