[ITK] [ITK-users] OpenCV - ITK project

Girish Mallya Udupi indianzeppelin at gmail.com
Fri Sep 26 11:35:23 EDT 2014


Yes, you do need to enable "Module_ITKVideoBridgeOpenCV" when you build
ITK.
I am not familiar with OpenCV installations on Mac. Do projects build fine
when you use OpenCV alone?

On Fri, Sep 26, 2014 at 4:28 PM, elena bresciani <
elena.bresciani87 at gmail.com> wrote:

> I get the CMake error " Error in configuration files. Project Files may be
> invalid "
>
> I think that my problem is with the module "Module_ITKVideoBridgeOpenCV",
> I have to rebuild ITK by checking that option (I don't think I had done
> this when I compiled ITK), and I hope that then it will work.
> I installed OpenCV with brew on Mac, you suggest to recompile it from
> source or it should be good as well?
>
> Thank you so much
>
> Elena
>
> 2014-09-26 16:35 GMT+02:00 Girish Mallya Udupi <indianzeppelin at gmail.com>:
>
>> Hi Elena,
>>
>> I use OpenCV and ITK together. The general procedure is to build OpenCV
>> from source using CMake, and then build ITK from source using CMake,
>> checking the "Module_ITKVideoBridgeOpenCV" option so that it is built.
>> During both the builds you generally do not have to modify the
>> CMakeLists.txt
>>
>> For a project which uses the libraries, the CMakeLists.txt would simply
>> look like -
>>
>> ----
>> cmake_minimum_required(VERSION 2.8)
>>
>> project(myProject)
>>
>> find_package(ITK REQUIRED)
>> find_package(OpenCV REQUIRED)
>>
>> include(${ITK_USE_FILE})
>>
>> add_executable(myProject test.cpp)
>>
>> target_link_libraries(myProject ${ITK_LIBRARIES} ${OpenCV_LIBS})
>> ----
>>
>> Is there a specific problem you are facing while trying this?
>>
>> On Fri, Sep 26, 2014 at 3:23 PM, elena bresciani <
>> elena.bresciani87 at gmail.com> wrote:
>>
>>> Hello to everybody,
>>>
>>> for the project I'm working on I need to integrate ITK and OpenCV.
>>> I've read the dedicated tutorial here
>>> <http://www.na-mic.org/Wiki/images/4/4a/ITKOpenCVBridgeTutorial.pdf>,
>>> but I can't find informations on how the CmakeList.txt file should be
>>> created or if I have to change some kind of building configuration of ITK
>>> and/or OpenCV.
>>>
>>> Can you please explain me what I have to do?
>>>
>>> Cheers
>>> Elena
>>>
>>> _____________________________________
>>> Powered by www.kitware.com
>>>
>>> Visit other Kitware open-source projects at
>>> http://www.kitware.com/opensource/opensource.html
>>>
>>> Kitware offers ITK Training Courses, for more information visit:
>>> http://www.kitware.com/products/protraining.php
>>>
>>> Please keep messages on-topic and check the ITK FAQ at:
>>> http://www.itk.org/Wiki/ITK_FAQ
>>>
>>> Follow this link to subscribe/unsubscribe:
>>> http://public.kitware.com/mailman/listinfo/insight-users
>>>
>>>
>>
>>
>> --
>> Regards,
>> Girish
>>
>
>


-- 
Regards,
Girish
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/community/attachments/20140926/59ef1c42/attachment-0002.html>
-------------- next part --------------
_____________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Kitware offers ITK Training Courses, for more information visit:
http://www.kitware.com/products/protraining.php

Please keep messages on-topic and check the ITK FAQ at:
http://www.itk.org/Wiki/ITK_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/insight-users


More information about the Community mailing list