No subject


Sun Apr 3 09:54:08 EDT 2011


Can you send through a minimal example so that I can reproduce the
issue (i.e. cmake files, demo filter source files, etc)?

Also, when you browse ManagedITK.Demo.dll in the object browser in
Visual Studio, do you see the "itk.itkDemoFilter_IUC2" type?

Regards, Dan

On 2 June 2011 05:27, KY <kuleesha26 at gmail.com> wrote:
> Hi,
>
> I recently started working on ManagedITK. Initially just for trial I rena=
med
> an existing ITK filter to itkDemoFilter and followed the steps mentioned =
in
> ManagedITK-article to create customised filter. I was able to create
> ManagedITK.Demo.dll. Although When i used it in an application I got this
> error "The type itk.itkDemoFilter_IUC2 could not be found".
>
> The .cmake file looks like this
>
>
> WRAP_CLASS("itk::DemoFilter")
>
> =A0SET(MANAGED_TYPE_TEMPLATE
> ${MANAGED_ITK_SOURCE_COMMON_PATH}/itkManagedImageToImageFilter_TYPE.cxx.i=
n)
> =A0SET(MANAGED_WRAPPER_TEMPLATE
> ${MANAGED_ITK_SOURCE_COMMON_PATH}/itkManagedImageToImageFilter_WRAPPER.cx=
x.in)
>
> =A0WRAP_IMAGE_FILTER_USIGN_INT(1)
>
> =A0BEGIN_MANAGED_PROPERTY("FlipAboutOrigin" GETSET)
> =A0 =A0.
> =A0 =A0.
> =A0 =A0.
> =A0END_MANAGED_PROPERTY()
>
> END_WRAP_CLASS()
>
> I also tried replacing WRAP_IMAGE_FILTER_USIGN_INT with following code
>
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0FOREACH(d ${WRAP_ITK_D=
IMS})
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 FOREACH(t ${W=
RAP_ITK_SCALAR})
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 WRAP_=
TEMPLATE("${ITKM_I${t}${d}}}"
> "${ITKT_I${t}${d}}")
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ENDFOREACH(t)
> =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 ENDFOREACH(d)
> but it didnt create multiple instances. Got the same error. I am out of
> options now.
> Any help would be appreciated.


More information about the Insight-users mailing list