Hi Stefan,
mitk::ClosedSpline and mitk::RingSpline were indeed only used for
experimental purposes so far. Rather than trying to make these
deprecated classes work, a new and better designed approach to support
spline curve in MITK should be implemented when the need arises.
If you look for a spline implementation and do not care so much for
rendering in MITK, I'd suggest to use VTK classes (vtkParametricSpline,
vtkCardinalSpline) or the ITK b-spline implementation
itk::NonUniformBSpline (which does not directly interpolate control
points though).
If your main intention is visualization, you could use the MITK spline
mapper classes, namely mitk::SplineMapper2D and mitk::SplineVtkMapper3D.
They take an mitk::PointSet and connect adjacent points with a VTK
spline function.
In our internal MITK branch, we have implemented a basic framework for
interpolating and non-interpolating subdivision curves (data objects,
mappers, readers/writers). Although subdivision is technically quite
different from spline interpolation, the visual result is very similar.
We are thinking about migrating these classes to the open source part of
MITK sooner or later. If you're interested in using subdivision curves
(and in helping us with making these classes open-source-ready :-)), let
us know!
Best regards,
Mathias
From: [email protected] [mailto:[email protected]]
Sent: Tuesday, July 07, 2009 6:49 PM
To: Baumhauer Matthias; [email protected]
Cc: [email protected]; Seitel Mathias
Subject: Re: RE: [mitk-users] Linker error when creating an object
oftypemitk::ClosedSpline
What I'm looking for is to have the opportunity to interpolate between
and render a set of points by an implicit function, such as a spline.
Are there other classes in mitk that support interpolation between fixed
points?
stefan
On Jul 7, 2009 6:11pm, Baumhauer Matthias
<[email protected]> wrote:
>
>
>
>
>
> mitkClosedSpline.cpp
> is not content of the mitkCoreExt project.
>
>
>
>
>
> The
> file is under actual subversion, however, not in the build process for
a longer
> time period already.
>
>
> It
> should have been moved to deprecated or marked as such, sorry.
>
>
>
>
>
> With
> subversion revision 10709, the mitkPointSet, which mitkClosedSpline
derives
> from, was extended to support 3D+t time sliced data.
>
>
> I'll
> talk to the developer of this. If mitkClosedSpline and mitkRingSpline
are of
> general interest, we will inform you and open a bug our bugtracker.
>
>
>
>
>
> Regards,
>
>
> Matthias
>
>
>
>
>
>
>
>
>
>
> From:
> [email protected] [mailto:[email protected]]
>
> Sent: Tuesday, July 07, 2009 5:34
> PM
>
> To: Baumhauer Matthias;
> [email protected]
>
> Cc:
> [email protected]
>
> Subject: Re: [mitk-users] Linker
> error when creating an object oftypemitk::ClosedSpline
>
>
>
>
>
>
>
>
> It does actually link against mitkCoreExt.lib. the call
> MACRO_CREATE_MITK_PLUGIN(QmitkExt) in the cmake file of the bundle
exists.
>
>
>
> Any other ideas?
>
>
>
> stefan
>
>
>
> On Jul 7, 2009 5:17pm, Baumhauer Matthias
> [email protected]> wrote:
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Does the
>
> > vs project of your plugin link against mitkCoreExt.lib ?
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > most
>
> > probably not, but only against MitkCore. You need to define the
MitkExt
>
> > dependency.
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > The CMakeLists.txt
>
> > of your bundle should look like this:
>
> >
>
> >
>
> > MACRO_CREATE_MITK_PLUGIN(QmitkExt)
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Regards,
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Matthias
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > From:
>
> > [email protected] [mailto:[email protected]]
>
> >
>
> > Sent: Tuesday, July 07, 2009 4:56
>
> > PM
>
> >
>
> > To:
>
> > [email protected]
>
> >
>
> > Subject: [mitk-users] Linker error
>
> > when creating an object of typemitk::ClosedSpline
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
> > Hi,
>
> >
>
> >
>
> >
>
> > I'm having trouble using the class mitk::ClosedSpline found in the
> mitkCoreExt
>
> > project in my plugin QmitkSpineMorphingView for ExtApp. I'm running
the
> latest
>
> > version of mitk from the svn repository using the MS VS 2005
compiler.
>
> >
>
> >
>
> >
>
> > When I try to create an instance of mitk::ClosedSpline by the call
mitk::ClosedSpline::New()
>
> > I get the following linker error:
>
> >
>
> >
>
> >
>
> > Error 1 error LNK2019: unresolved external symbol
> "__declspec(dllimport)
>
> > public: static class itk::SmartPointer __cdecl
>
> > mitk::ClosedSpline::New(void)"
(__imp_?...@closedspline@mitk@@sa?av?$smartpoin...@vclosedspline@mitk@@@
itk@@XZ)
>
> > referenced in function "public: __thiscall
>
> > QmitkSpineMorphingView::QmitkSpineMorphingView(void)"
>
> > (??0QmitkSpineMorphingView@@q...@xz) QmitkSpineMorphingView.obj
>
> >
>
> >
>
> >
>
> > Any ideas for a solution?
>
> >
>
> >
>
> >
>
> > Stefan
>
> >
>
> >
>
> >
>
> >
>
> >
>
> >
>
>
>
>
>
>
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
mitk-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mitk-users