Luca,

vmtkimagereslice worked very well to get the two images to the same dimensions. 
 However, the origin is still in a different position because the two surface 
models were difference sizes when clipped.  Is there an easy workaround to keep 
the origin consistent, or do I need to use another method such as registration?

Thank you,
Ben


On Apr 23, 2012, at 4:15 AM, Luca Antiga wrote:

> Hi Ben,
> there is, although it could be more direct:
> 
> 1. make sure the two initial surfaces are "close" enough to begin with
> 2. generate img1.vti and img2.vti with vmtksurfacemodeller
> 3. resample img2.vti on the image grid of img1.vti using vmtkimagereslice
> 
> vmtkimagereslice -ifile img2.vti -rfile img2.vti -ofile img2_on_1.vti
> 
> At this point img1 and img2_on_1 are defined on the exact same grid. This
> is quite convenient because you can for instance merge them with 
> vmtkimagecompose,
> etc.
> 
> Hope this helps
> 
> 
> Luca
> 
> 
> On Apr 19, 2012, at 8:24 PM, Berkowitz, Benjamin M wrote:
> 
>> Is there a way to keep the origin consistent between two image stacks 
>> created from vmtksurfacemodeller?
>> 
>> Thanks,
>> Ben Berkowitz
>> ------------------------------------------------------------------------------
>> For Developers, A Lot Can Happen In A Second.
>> Boundary is the first to Know...and Tell You.
>> Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
>> http://p.sf.net/sfu/Boundary-d2dvs2
>> _______________________________________________
>> vmtk-users mailing list
>> vmtk-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/vmtk-users
> 


------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to