Hi MITK Users,
I've been following the MITK examples and have made them work for my
application as expected without much problems, until I tried to bring in a
region growing algorithm into my simple application.
In short it crashes on the call to the region growing Template with the
error message: mitk::AccessByItkException at memory location
0x0000000000179810.
In long, here is what I did. I have the MITK example 6 to 8 running on my
solution without a problem and with the same data set.
In my application I included the MITK6Regiongrowing1.cpp 2.cpp and .txx
renaming everything carefully as to avoid conflicts and confusions with the
MITK6 example. The template function is found, by the Visual studio
intellisense on:
AccessByItk_1(m_FirstImage, RegionGrowingOP, this);
The files to call the different templates have this content:
#include "OPRegionGrowing.txx"
#include <mitkInstantiateAccessFunctions.h>
#define InstantiateAccessFunction_RegionGrowingOP(pixelType, dim)
\
\
template void
\
RegionGrowingOP(itk::Image<pixelType, dim> *, MainWindow *);
InstantiateAccessFunctionForFixedDimension(RegionGrowingOP, 2)
notice that I've renamed the function template name adding an OP to it.
Intellisense was giving me an error on
InstantiateAccessFunctionForFixedDimension (no type definition) but
mysteriously dispersed. It compiles and runs everything until I call
AccessByItk_1(m_FirstImage, RegionGrowingOP, this);
m_FirstImage is populated, and gives the pixeltype and dimension, once,
then it throws me an exception: AccessByItkException ....
any inside help to work around this and get the region growing template to
work would be highly appreciated.
PS. I-m running a Windows 7 with Visual Studio Community 2013
with my best regards
Vitor Vieira
--------------------------------
Dr. Vitor Vieira
Tel: +49 6221 3543445
Mob: +49 163 3349042
E-Mail: vitor.vie...@inova-de.eu
Web: www.inova-de.eu
Inova DE GmbH
Sitz: Kaiserstraße 64, 69115 Heidelberg, Germany
Amtsregister Mannheim: HRB 722938, USt-IdNr.: DE 301814751 Steuernummer:
32494/63607
Geschäftsführer: Vitor Vieira
Diese E-Mail kann Betriebs- oder Geschäftsgeheimnisse, dem Anwaltsgeheimnis
unterliegende oder sonstige vertrauliche Informationen enthalten. Sollten
Sie diese E-Mail irrtümlich erhalten haben, ist Ihnen eine Kenntnisnahme
des Inhalts, eine Vervielfältigung oder Weitergabe der E-Mail ausdrücklich
untersagt. Bitte benachrichtigen Sie uns und vernichten Sie die empfangene
E-Mail. Vielen Dank!
This message contains confidential information and is intended only for the
individual named. If you are not the named addressee you should not
disseminate, distribute or copy this e-mail. Please notify the sender
immediately and delete this e-mail from your system. Thank you!
Please think twice before printing this e-mail: save paper, toner and the
environment.
------------------------------------------------------------------------------
Developer Access Program for Intel Xeon Phi Processors
Access to Intel Xeon Phi processor-based developer platforms.
With one year of Intel Parallel Studio XE.
Training and support from Colfax.
Order your platform today.http://sdm.link/xeonphi
_______________________________________________
mitk-users mailing list
mitk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mitk-users