Skip to content

MSVC compilation error in bilateral_upsampling.hpp #2016

Closed
@denix56

Description

@denix56

When I compile pcl surface I get this error:
'initializing': cannot convert from 'Eigen::IndexedView<Derived,float,float>' to 'float'

in line 112:

 float dx = float (x - x_w),
                dy = float (y - y_w);

            float val_exp_depth = val_exp_depth_matrix(dx+window_size_, dy+window_size_);

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions