Indeed the values are bogus, indicating that your field has bogus values. What I am going to suggest is that you first try the example provided in teh SoftwareGuide. (It also shows how you can display the field in paraview, which you've figured out by now). You can try either DeformableRegistration4 or DeformableRegistration2. The command line args for the latter are in the sourcefile DeformableRegistration2.cxx. <br>
<br>That way you can convince yourself that you can display a field in paraview and then focus on what went wrong with your deformation field.<br><br><div class="gmail_quote">On Tue, Nov 3, 2009 at 10:24 AM, motes motes <span dir="ltr"><<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Ah found it thanks! So now I do:<br>
<br>
MetaImage_X*iHat+MetaImage_Y*jHat+0*kHat<br>
<br>
where MetaImage_X and MetaImage_Y are selected from the scalars menu.<br>
<br>
Next I add a glyph filter, but when I press apply a empty 3D<br>
coordinate system appears - not a single deformation vector shows up -<br>
even though Max num of points = 5000.<br>
<br>
When I press the Information tab in the Glyph filter I can see that:<br>
<br>
Data Arrays:<br>
<br>
Name Data Type Data Ranges<br>
MetaImage float [-inf, -1e+38], [-inf, -1e+38]<br>
GlyphVector float [ 1e+38, -1e+38], [ 1e+38, -1e+38],<br>
[ 1e+38, -1e+38]<br>
<br>
Could this maybe have something to do with the lack of deformation vectors?<br>
<br>
<br>
<br>
On Tue, Nov 3, 2009 at 4:11 PM, Karthik Krishnan<br>
<div><div></div><div class="h5"><<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:<br>
> On Tue, Nov 3, 2009 at 9:59 AM, motes motes <<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>> wrote:<br>
>><br>
>> On Tue, Nov 3, 2009 at 3:40 PM, Karthik Krishnan<br>
>> <<a href="mailto:karthik.krishnan@kitware.com">karthik.krishnan@kitware.com</a>> wrote:<br>
>> > On Tue, Nov 3, 2009 at 9:33 AM, motes motes <<a href="mailto:mort.motes@gmail.com">mort.motes@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> But when I view the .mhd file in paraview I just get:<br>
>> >><br>
>> >> <a href="http://37133.vs.webtropia.com/apache2-default/test/test0.png" target="_blank">http://37133.vs.webtropia.com/apache2-default/test/test0.png</a><br>
>> >><br>
>> >><br>
>> >> In paraview I load the .mhd file. Then I add a calculator and type:<br>
>> >><br>
>> >> coordsX*iHat+coordsY*jHat+0*kHat<br>
>> ><br>
>> > It should read<br>
>> ><br>
>> > MetaImage_0*iHat + MetaImage_1*jHat + 0*kHat<br>
>> ><br>
>> > Choose MetaImage_* from the pull down menu on the calculator. You chose<br>
>> > coords (which are simply coordinates of the points, not the scalar<br>
>> > values of<br>
>> > the their components) which perfectly explains the image you see.<br>
>><br>
>><br>
>><br>
>><br>
>><br>
>><br>
>> Its not possible to choose MetaImage_* from any menus in the<br>
>> calculator.<br>
><br>
> It is there in the the "Scalars" pull down menu on the Calculator tab, not<br>
> in the attribute menu.<br>
><br>
>><br>
>> From the "attribute mode" drop down menu I can choose:<br>
>><br>
>> Point data<br>
>> cell data<br>
>><br>
>> If I manullay type:<br>
>><br>
>> MetaImage_0*iHat + MetaImage_1*jHat + 0*kHat<br>
>><br>
>> into the expression editor and press apply I just get a bunch of error:<br>
><br>
> Think its the spaces. In any case, use the menu and select what appears.<br>
><br>
><br>
><br>
</div></div></blockquote></div><br><br>