[Insight-users] Adding itkTransformPointSetFilter
Luis Ibanez
luis.ibanez at kitware.com
Wed Jul 29 11:09:15 EDT 2009
Hi David,
Excellent work !,
It is a good idea to follow the hierarchy of Image and Mesh filters,
more explicitly:
A) PointSetSource
B) PointSetToPointSetFilter
C) TransformPointSetFilter
I have generated (A) and (B) for you, and made some minor
changes to your (C).
Please find attached the combined source code.
It is compiling for me on Linux Ubuntu, gcc 4.2.
You are *VERY STRONGLY* encouraged to contribute
this new set of classes to the Insight Journal, to share
them with the community.
They will be very useful.
Regards,
Luis
---------------------------------------------------------------------------------------
On Tue, Jul 28, 2009 at 9:27 AM, David Doria
<daviddoria+itk at gmail.com<daviddoria%2Bitk at gmail.com>
> wrote:
> Luis,
>
> A while ago we discussed this - is it better posed to the devel mailing
> list?
>
> I am not very familiar with this heavily templated style project, so bear
> with me - I've got some learning to do!
> I added Insight/Code/BasicFilters/itkTransformPointSetFilter.h/txx to my
> src directory.
>
> itkTransformMeshFilter is a subclass of itkMeshToMeshFilter, and I don't
> see a itkPointSetToPointSetFilter. Do I need to create that too? And even
> further, itkMeshToMeshFilter is a subclass of itkMeshSource (and again, MIA
> is itkPointSetSource), which has functions like ProcessObject, etc. Are
> those necessary? I ask because in itkTransformPointSetFilter.txx, this line
> itkNewMacro(Self);
>
> produces errors like
> itk::AffineTransform<float, 3u> >’ has no member named ‘UnRegister’
>
> and I guess that is taken care of in those parent classes.
>
> Clearly this a very simple function (a for loop that applies a transform to
> each point), but I'm having trouble getting it to play nice with the
> instantiation macros and all of the upstream stuff. Any suggestions?
>
> I'm not sure it's worth looking at yet, but here are the work-in-progress
> files:
> http://www.rpi.edu/~doriad/itkTransformPointSetFilter/<http://www.rpi.edu/%7Edoriad/itkTransformPointSetFilter/>
>
> I commented everything after the first line that produces an error in the
> test file.
>
> Thanks,
>
> David
>
> _____________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.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/20090729/6c193d81/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: itkTransformPointSetFilter.tgz
Type: application/x-gzip
Size: 6176 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090729/6c193d81/attachment.bin>
More information about the Insight-users
mailing list