Skip to content

Error in itkOpenCVImageBridge #1929

Description

@Bleach665

Win10, CMake 3.18, VS 2017, opencv 4.4.0, ITK fe92a3a.

Step to reproduce:
Make clean VS project using CMake with Opencv and ITK.
After including #include <itkOpenCVImageBridge.h> received build errors:

1>E:\Lib_prebuild\ITK\build_x64\include\ITK-5.2\itkOpenCVImageBridge.h(154): error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
1>E:\Lib_prebuild\ITK\build_x64\include\ITK-5.2\itkOpenCVImageBridge.h(154): error C2988: unrecognizable template declaration/definition
1>E:\Lib_prebuild\ITK\build_x64\include\ITK-5.2\itkOpenCVImageBridge.h(154): error C2143: syntax error: missing ',' before '&'

@PierreWargnier would you please take a look?

As far as I remember this bug did not appear in ITK 5.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:BugInconsistencies or issues which will cause an incorrect result under some or all circumstances

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions