[Insight-users] new class implementation

Jihun Kim jihun at umich.edu
Tue Jun 28 16:51:49 EDT 2011


I am trying to build it inside ITK. Mentioning ITK_USE_REVIEW, I meant I
re-built ITK again. I was wondering if rebuild affects it. 

By simply adding a new class in the ITK source directory (for example,
src/itk-3.18.0/code/Algorithms), can we incorporate a new class? I would
like to know how to do this?

Thanks,
Jihun



-----Original Message-----
From: David Doria [mailto:daviddoria at gmail.com] 
Sent: Tuesday, June 28, 2011 4:44 PM
To: jihun at umich.edu
Cc: insight-users at itk.org
Subject: Re: [Insight-users] new class implementation

On Tue, Jun 28, 2011 at 4:27 PM, Jihun Kim <jihun at umich.edu> wrote:
> Dear all ITK users,
>
>
>
> I have developed my own classes (for example,
> itkMeanSquaresImageToImageMetricJK .h and .cxx). I believe the codes are
> correct because these have worked properly so far. The problem is that,
now,
> I built ITK again in order to change ITK_USE_REVIEW to ON. Now when I
build
> a new project, my compiler (VS C++) says to me that
> 'MeanSquaresImageToImageMetricJK' : is not a member of 'itk'.
>
>
>
> Does anyone know how to implement new classes? I don't remember how I did
> before. And the way I now remember doesn't not work at all.
>
>
>
> Thanks in advance.
>
> Jihun
>

Are you trying to build that class inside ITK? Or in a separate
directory with a separate CMakeLists.txt file?

I don't see how ITK_USE_REVIEW should affect anything in the second case.

This: 'MeanSquaresImageToImageMetricJK' : is not a member of 'itk'.

probably means that you have not wrapped your class {} definition in a
namespace itk {}.

David





More information about the Insight-users mailing list