[Insight-users] Vector image interpolation

Bradley Lowekamp blowekamp at mail.nih.gov
Thu Jan 24 09:03:58 EST 2013


Hi,

I was hoping for a little test program so that I could fix the filter to directly work on Image of Vectors. By having you write the basic test not only does it ensure the behavior you desire is there, it also saves me time :)

Brad

On Jan 24, 2013, at 5:19 AM, Rômulo Pinho <romulo.pinho at lyon.unicancer.fr> wrote:

> Hello, again,
> I've just implemented the idea below and it works. In any case, if you have any other ideas, please do share! 
> Thanks!
> Rômulo
> 
> On 01/23/2013 10:32 PM, Rômulo Pinho wrote:
>> Hi, Brad, 
>> Thanks for the tips... 
>> 
>> I don't have a snippet at hand now, but I basically have two itk::Image< itk::Vector< type, dim >, dim > which I wish to interpolate at a given distance. The problem with InterpolateImageFilter is that it expects an interpolator which derives from InterpolateImageFunction, whereas all vector interpolators derive from VectorInterpolateFunction...
>> 
>> The best I can think of is to extract the components of my vector images into scalar images (I think there's an adaptor for that, right?), then use the InterpolateImageFilter on each of them, and finally reassemble the resulting components into a new vector image... It's not very efficient, but will do for the moment... Is it what you had in mind?
>> 
>> I guess that, ideally, I'd have to implement my own VectorInterpolateImageFilter...
>> 
>> Regards,
>> Rômulo
>> 
>> On 23/01/2013 15:49, Bradley Lowekamp wrote:
>>> What is your specific image type and interpolator you are trying to use?
>>> 
>>> Do you have a small code snippet that you are trying to get to work with the filter?
>>> 
>>> I think that the InterpolateImageFilter should ( not that is does ) work with either image type. It likely just needs a little tweaking. So you you provide an example program, I hopefully can take a look to see if there are some little tweaks that are needed can be easily done.
>>> 
>>> Brad
>>> 
>>> On Jan 23, 2013, at 6:55 AM, Rômulo Pinho <romulo.pinho at lyon.unicancer.fr> wrote:
>>> 
>>>> Hello, everyone,
>>>> 
>>>> Is there an equivalent of itk::InterpolateImageFilter for vector images?
>>>> 
>>>> Thanks in advance!
>>>> Regards,
>>>> 
>>>> Rômulo
>>>>  -- 
>>>> Rômulo PINHO
>>>> Post-doc Assistant Researcher
>>>> Centre Léon Bérard 
>>>> 28, rue Laennec 69373 
>>>> Lyon, France 
>>>> +33 (0)4 78 78 51 50 
>>>> romulo.pinho at lyon.unicancer.fr 
>>>> http://www.creatis.insa-lyon.fr/rio/RomuloPinho
>>>> _____________________________________
>>>> 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.php
>>>> 
>>>> 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
>>> 
>> 
> 
> _____________________________________
> 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.php
> 
> 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/20130124/f7207753/attachment-0001.htm>


More information about the Insight-users mailing list