[Insight-users] new class implementation

Dženan Zukić dzenanz at gmail.com
Wed Jun 29 07:17:33 EDT 2011


If your build directory is not the same as source directory, I guess it will
make problems, because that file is not copied to build dir because it is
not referenced in CMakeLists files.

On Tue, Jun 28, 2011 at 22:51, Jihun Kim <jihun at umich.edu> wrote:

> 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
>
>
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Kitware offers ITK Training Courses, for more information visit:
> http://www.kitware.com/products/protraining.html
>
> Please keep messages on-topic and check the ITK FAQ at:
> http://www.itk.org/Wiki/ITK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.itk.org/mailman/listinfo/insight-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.itk.org/pipermail/insight-users/attachments/20110629/a4664e74/attachment.htm>


More information about the Insight-users mailing list