[Insight-users] request an example for InterpolateImagePointsFilter

Luis Ibanez luis.ibanez at kitware.com
Tue Feb 10 18:27:23 EST 2009


Hi Hussein,

Please find attached an example that will take points from a list,
and use them to interpolate values from a 3D image.

If you actually convert this to a filter, it will be great is you
contribute it back to the Insight Journal   :-)
http://www.insight-journal.org/


   Thanks

         Luis


----------------------------------------------------
On Mon, Feb 9, 2009 at 2:28 PM, Hussein Sharafeddin <sharah at rpi.edu> wrote:

>  Hi all,<http://www.itk.org/Doxygen/html/classitk_1_1InterpolateImagePointsFilter.html>
> this is my first email here.
> I need an example on how to use
> InterpolateImagePointsFilter<http://www.itk.org/Doxygen/html/classitk_1_1InterpolateImagePointsFilter.html>
> I am trying to use an equivalent of matlab's
> interp3(img, xcoords, ycoords, zcoords, 'method')
> So img would be a 3D image, and each of [xyz]coords
> is a list of floating point coordinate values. The output
> should be the grayscale intensity values in the image.
> Thanks
>
>
> _____________________________________
> 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/20090210/5d917a07/attachment.htm>
-------------- next part --------------
CMAKE_MINIMUM_REQUIRED(VERSION 2.4)
IF(COMMAND CMAKE_POLICY)
  CMAKE_POLICY(SET CMP0003 NEW)
ENDIF(COMMAND CMAKE_POLICY)

PROJECT(InterpolateImagePointsFilter)

FIND_PACKAGE(ITK REQUIRED)
INCLUDE(${ITK_USE_FILE})

ADD_EXECUTABLE(InterpolateImagePointsFilter InterpolateImagePointsFilter.cxx )
TARGET_LINK_LIBRARIES(InterpolateImagePointsFilter ITKIO ITKCommon)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: InterpolateImagePointsFilter.cxx
Type: text/x-c++src
Size: 1852 bytes
Desc: not available
URL: <http://www.itk.org/pipermail/insight-users/attachments/20090210/5d917a07/attachment.cxx>


More information about the Insight-users mailing list