Discussion:
[mitk-users] ITKVideoBridgeOpenCV in MITK 2016.11
Noll, Matthias
2017-03-23 15:19:47 UTC
Permalink
Hi All,

I was wondering if there is an easy way to activate the ITKVideoBridgeOpenCV for the new MITK 2016.11.

I do not find any option to trigger this. If I do it manually by editing the cmake config for ITK-build in the MITK Superbuild folders, I can build the lib, but not use it.
It seem that MITK uses a different path for all external projects. Thus, plugins and models can't find the libs and headers. Again, copying the files manually to the MITK/ep folders and adjusting the cmake files does not work, because then MITK tries to find e.g. ITKVideoBridgeOpenCV.lib instead of %LIB_PATH%\ITKVideoBridgeOpenCV-4.9.lib.

Long story short, it's a pain to get OpenCV Bride working with MITK.

If I've not missed anything, you guys should either build ITKOpenCVBridge by default if MITK_USE_OpenCV is selected or include a cmake option to do so.

Regards,
Matthias
Goch, Caspar Jonas
2017-03-23 17:14:57 UTC
Permalink
Hi Matthias,

you can edit which ITK CMake options are set during superbuild in the /CMakeExternals/ITK.cmake

looking at it there is the following piece of code:
if(MITK_USE_OpenCV)




list(APPEND additional_cmake_args



-DModule_ITKVideoBridgeOpenCV:BOOL=ON



-DOpenCV_DIR:PATH=${OpenCV_DIR}



)



endif()


So I would expect the bridge to be on in that case. If that does not work it is probably a bug.

Best,
Caspar

Von: Noll, Matthias [mailto:***@igd.fraunhofer.de]
Gesendet: Donnerstag, 23. März 2017 16:20
An: mitk-***@lists.sourceforge.net
Betreff: [mitk-users] ITKVideoBridgeOpenCV in MITK 2016.11

Hi All,

I was wondering if there is an easy way to activate the ITKVideoBridgeOpenCV for the new MITK 2016.11.

I do not find any option to trigger this. If I do it manually by editing the cmake config for ITK-build in the MITK Superbuild folders, I can build the lib, but not use it.
It seem that MITK uses a different path for all external projects. Thus, plugins and models can't find the libs and headers. Again, copying the files manually to the MITK/ep folders and adjusting the cmake files does not work, because then MITK tries to find e.g. ITKVideoBridgeOpenCV.lib instead of %LIB_PATH%\ITKVideoBridgeOpenCV-4.9.lib.

Long story short, it's a pain to get OpenCV Bride working with MITK.

If I've not missed anything, you guys should either build ITKOpenCVBridge by default if MITK_USE_OpenCV is selected or include a cmake option to do so.

Regards,
Matthias
Noll, Matthias
2017-03-28 09:09:23 UTC
Permalink
Hi Caspar,

The bridge building worked. I'm not sure what went wrong but a rebuild solved the issue.

Matthias

From: Goch, Caspar Jonas [mailto:***@Dkfz-Heidelberg.de]
Sent: Donnerstag, 23. März 2017 18:15
To: Noll, Matthias <***@igd.fraunhofer.de>; mitk-***@lists.sourceforge.net
Subject: AW: ITKVideoBridgeOpenCV in MITK 2016.11

Hi Matthias,

you can edit which ITK CMake options are set during superbuild in the /CMakeExternals/ITK.cmake

looking at it there is the following piece of code:
if(MITK_USE_OpenCV)




list(APPEND additional_cmake_args



-DModule_ITKVideoBridgeOpenCV:BOOL=ON



-DOpenCV_DIR:PATH=${OpenCV_DIR}



)



endif()


So I would expect the bridge to be on in that case. If that does not work it is probably a bug.

Best,
Caspar

Von: Noll, Matthias [mailto:***@igd.fraunhofer.de]
Gesendet: Donnerstag, 23. März 2017 16:20
An: mitk-***@lists.sourceforge.net<mailto:mitk-***@lists.sourceforge.net>
Betreff: [mitk-users] ITKVideoBridgeOpenCV in MITK 2016.11

Hi All,

I was wondering if there is an easy way to activate the ITKVideoBridgeOpenCV for the new MITK 2016.11.

I do not find any option to trigger this. If I do it manually by editing the cmake config for ITK-build in the MITK Superbuild folders, I can build the lib, but not use it.
It seem that MITK uses a different path for all external projects. Thus, plugins and models can't find the libs and headers. Again, copying the files manually to the MITK/ep folders and adjusting the cmake files does not work, because then MITK tries to find e.g. ITKVideoBridgeOpenCV.lib instead of %LIB_PATH%\ITKVideoBridgeOpenCV-4.9.lib.

Long story short, it's a pain to get OpenCV Bride working with MITK.

If I've not missed anything, you guys should either build ITKOpenCVBridge by default if MITK_USE_OpenCV is selected or include a cmake option to do so.

Regards,
Matthias

Loading...