[Insight-users] Converting between vector,pixel,index etc

Krzysztof Fediuk krzysiek.fediuk at gmail.com
Tue Aug 3 08:10:41 EDT 2010


  Hi all

I'm writing my first application with ITK and I've hit the wall of types 
conversion. In different parts of code I use different variable type, 
which name suits the purpose of the code. But I don't know is there any 
nice way to convert values between vector and index?
Some times I also simply need to cast (ex. form double to int) and using 
different types prevents me from doing this. I know how to cast an 
image, but for Vector or Offset, there are no filters.

Thanks,
Krzysiek


More information about the Insight-users mailing list