I rebuilt the video player plugin in MITK and was able to grab a video device 
and render the frames in the widget. When I use my plugin in an external 
application, I am still having the issue, which is quite peculiar:

If I add m_VideoSource=mitk::OpenCVVideoSource::New(); to the constructor the 
plugin refuses to load. It still might have something to do with the CV dll's. 

-Keshav

----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "Keshav Chintamani" <[email protected]>, 
"[email protected]"
<[email protected]>
Sent: Wednesday, June 23, 2010 11:37:06 AM
Subject: AW: WG: AW: AW: WG: mitkOpenCVSupport

Hi Keshav,

please (!) always send these mails to [email protected] .
I will receive them and anyone else having the same problem can
participate and give comments.
Your plugin DLL cannot be loaded because it depends on the OpenCV DLLs
which are obviously not found. Make sure to include the locations of
these DLLs in your PATH environment variable (MS Windows) before
starting the app. This is the same procedure as for ITK and VTK.
You may want to read http://www.mitk.org/wiki/SetupMitkQt4BlueBerry

Regards,
Michael

-----Ursprüngliche Nachricht-----
Von: Keshav Chintamani [mailto:[email protected]]
Gesendet: Mittwoch, 23. Juni 2010 10:55
An: Müller Michael
Betreff: Re: WG: AW: AW: WG: mitkOpenCVSupport

Hi Michael,

I am having a specific issue related to the mitkOpenCVVideoSupport
module.

I have created a plugin using the bundle generator and added a
dependency on the mitkOpenCVVideoSupport module in the CMakeLists.txt

The cmake build goes fine and I want to use the mitk-OpenCV wrapper
interface in my plugin.

When I create an instance of the mitk::OpenCVVideoSource interface in
CreateQtPartControl(), the plugin does not show up in the application.

I have attached the source code for the plugin and a screenshot of the
application.

Any help is appreciated!

-Keshav



----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "[email protected]"
<[email protected]>,
"[email protected]"
<[email protected]>
Sent: Tuesday, June 22, 2010 5:18:51 PM
Subject: WG: AW: AW: WG: mitkOpenCVSupport

Ok Keshav, and please always send/reply to the mitk users list:
[email protected]

-----Ursprüngliche Nachricht-----
Von: Keshav Chintamani [mailto:[email protected]]
Gesendet: Dienstag, 22. Juni 2010 17:16
An: Müller Michael
Betreff: Re: AW: AW: WG: mitkOpenCVSupport

Michael,

Thanks for the information. Yes it possible that our macro may not be
looking through the subfolders. I could survive without the UI (widget).
Although it could be useful for a quick test of something I need to do.

Ill let you know if I have any other issues.


-Keshav


----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "Keshav Chintamani" <[email protected]>,
"[email protected]" <[email protected]>
Sent: Tuesday, June 22, 2010 5:09:51 PM
Subject: AW: AW: WG: mitkOpenCVSupport

Hi again,

well, the "mitkOpenCVVideoSupportUI" module is physically a sub folder
of the "mitkOpenCVVideoSupport" module. Maybe your modifications on the
CMake routines cannot handle this?
As far as I remember the mitkOpenCVVideoSupportUI" module just offers
one complete Widget for handling grabbing/video playback. If you don’t
need this widget, just neglect it and use only the
"mitkOpenCVVideoSupport" module. This is enough to use the MITK-OpenCV
wrapper classes.

Michael

-----Ursprüngliche Nachricht-----
Von: Keshav Chintamani [mailto:[email protected]]
Gesendet: Dienstag, 22. Juni 2010 17:03
An: Müller Michael
Betreff: Re: AW: WG: mitkOpenCVSupport

Hi Michael,

I am having problems during the build of the cmake binary. When the
macro is called during the configuration in cmake, the following errors
are produced.

------------------------------------------------- Creating plugin
camdass.speech.synthesis.setup ***MITK_USE_OPEN_CV=1
KC: Looking for MITK MODS:
Mitk;MitkExt;PlanarFigure;Qmitk;QmitkExt;SceneSerialization;SceneSerializationBase;ann;ipSegmentation;mbilog;mitkIpPic;mitkOpenCVVideoSupport;qwt;qxt;tinyxml
KC: Looking for: mitkOpenCVVideoSupportUI
KC: Looking for:
D:/Devs/CAMDASS/Build/modulesConf/mitkOpenCVVideoSupportUIConfig.cmake
KC: Looking for: D:/Devs/CAMDASS/Build/modulesConf/MitkExtConfig.cmake
CMake Error at CMake/CamdassMacros.cmake:223 (INCLUDE):
include could not find load file:

D:/Devs/CAMDASS/Build/modulesConf/MitkExtConfig.cmake
Call Stack (most recent call first):
CMake/CamdassMacros.cmake:421 (CAMDASS_USE_MODULE)
CAMDASS_Plugins/camdass.video.widget/CMakeLists.txt:3
(MACRO_CREATE_CAMDASS_PLUGIN)


KC: Looking for: D:/Devs/CAMDASS/Build/modulesConf/QmitkExtConfig.cmake
CMake Error at CMake/CamdassMacros.cmake:223 (INCLUDE):
include could not find load file:

D:/Devs/CAMDASS/Build/modulesConf/QmitkExtConfig.cmake
Call Stack (most recent call first):
CMake/CamdassMacros.cmake:421 (CAMDASS_USE_MODULE)
CAMDASS_Plugins/camdass.video.widget/CMakeLists.txt:3
(MACRO_CREATE_CAMDASS_PLUGIN)
-----------------------------------------------

I am not sure why the mitkOpenCVSupport module works while the
corresponding UI module does not.

-Keshav


----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "Keshav Chintamani" <[email protected]>,
"[email protected]" <[email protected]>
Sent: Tuesday, June 22, 2010 4:52:37 PM
Subject: AW: WG: mitkOpenCVSupport

Hi Keshav,

please let us know which problems do you exactly have
(CMake/compiler/linker/runtime errors?). E.g. I don’t know what you do
in your MACRO_CREATE_CAMDASS_PLUGIN macro. Maybe there is an error.
Normally, you would just write

MACRO_CREATE_MITK_PLUGIN(QmitkExt mitkIGTUI mitkOpenCVVideoSupportUI)

Bye,
Michael


-----Ursprüngliche Nachricht-----
Von: Keshav Chintamani [mailto:[email protected]]
Gesendet: Dienstag, 22. Juni 2010 16:30
An: Müller Michael
Betreff: Re: WG: mitkOpenCVSupport

Hi Michael,

I looked at the videoplayer plugin and made sure the meta files in our
plug-in are fine. For testing, I tried creating a dependency on the
mitkIGTUI module and there was no problem with the build using
MACRO_CREATE_CAMDASS_PLUGIN(QmitkExt mitkIGTUI)

However I have problems only when I use the macro like this:
MACRO_CREATE_CAMDASS_PLUGIN(QmitkExt mitkOpenCVVideoSupportUI)

Any suggestions are welcome.

Thanks,

Keshav


----- Original Message -----
From: "Müller Michael" <[email protected]>
To: "[email protected]"
<[email protected]>
Sent: Tuesday, June 22, 2010 3:55:49 PM
Subject: WG: mitkOpenCVSupport

Hi Keshav,

there is a bundle called "org.mitk.gui.qt.videoplayer" which was only
created to show the usage of the "mitkOpenCVVideoSource" module. Please
have a look in the corresponding plugin meta files. The bundle builds
fine so far, so you should be able to build your own bundle without
errors. If not, post your errors here.
And yes, you have to use MITK modules unless you want to copy code -
what you should not do! Anyway, including modules is be easy as
dependencies are automatically resolved by CMake. If you encounter build
errors, the problem might be somewhere else...

Regards,
Michael

-----Ursprüngliche Nachricht-----
Von: Keshav Chintamani [mailto:[email protected]]
Gesendet: Dienstag, 22. Juni 2010 13:10
An: Zelzer Sascha
Betreff: mitkOpenCVSupport

Hi Sascha,

I am trying to use the mitkOpenCVVideoSupport module in a plugin that I
created. When I add the related modules in my dependencies list in the
CMakelists.txt file in the plugin, I get many build errors.

Is there a better way to get access to mitk's OpenCV library wrapper
(i.e mitkOpenCVVideoSource) directly from my plugin. Do I have to have
to use the mitk modules?

Thanks,

Keshav

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to