Hi Wagner,

I haven't used the OpenCVSupport module under Linux yet. We just used it under 
MS Visual Studio 2008. We only got compile errors when using the static 
function below in our code,

template <typename TPixel, unsigned int VImageDimension>
mitk::Image::Pointer mitk::OpenCVToMitkImageFilter::ConvertIplToMitkImage( 
const IplImage * input, bool copyBuffer )

we switched to use the filter like this without any errors.

mitk::OpenCVToMitkImageFilter::Pointer m_Filter = 
mitk::OpenCVToMitkImageFilter::New();
m_Filter->SetOpenCVImage(m_CurrentCVFrame);
m_Filter->Update();
mitk::Image* m_CurrentMITKFrame = m_Filter->GetOutput(0);


Regards,

Stefan Daenzer

_______________________________________________________________________
Dipl. Inform. Stefan Daenzer
Research Associate | Working Group - Scientific Methods

Universität Leipzig | Faculty of Medicine
Innovation Center Computer Assisted Surgery (ICCAS)
Semmelweisstr. 14
D - 04103 Leipzig
Germany

Phone: ++49 (0) 341 / 97 - 1 20 03
Fax: ++49 (0) 341 / 97 - 1 20 09
Email: [email protected]

-----Ursprüngliche Nachricht-----
Von: Wagner Sales [mailto:[email protected]] 
Gesendet: Donnerstag, 25. März 2010 14:16
An: [email protected]
Betreff: [mitk-users] Compile errors on gcc 4.4.1 - linux (solution attached)

Hi all,

When compiling MITK with OpenCV support I've got a lot of compile errors.
This compile errors may be don't occurs in other platforms, but I
don't have others to test.
Basically some template methods have some type instantiations without
typename keyword. The files with the typenames are attached, since are
only two, I think a diff will be the sufficient to see the problem.

Regards,

Wagner Sales

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users

Reply via email to