[Insight-users] Incorrect deformation field using paraview

motes motes mort.motes at gmail.com
Tue Nov 3 09:59:30 EST 2009


On Tue, Nov 3, 2009 at 3:40 PM, Karthik Krishnan
<karthik.krishnan at kitware.com> wrote:
> On Tue, Nov 3, 2009 at 9:33 AM, motes motes <mort.motes at gmail.com> wrote:
>>
>> But when I view the .mhd file in paraview I just get:
>>
>> http://37133.vs.webtropia.com/apache2-default/test/test0.png
>>
>>
>> In paraview I load the .mhd file. Then I add a calculator and type:
>>
>>      coordsX*iHat+coordsY*jHat+0*kHat
>
> It should read
>
> MetaImage_0*iHat + MetaImage_1*jHat +  0*kHat
>
> Choose MetaImage_* from the pull down menu on the calculator. You chose
> coords (which are simply coordinates of the points, not the scalar values of
> the their components) which perfectly explains the image you see.






Its not possible to choose MetaImage_* from any menus in the
calculator. From the "attribute mode" drop down menu I can choose:

Point data
cell data

If  I manullay type:

MetaImage_0*iHat + MetaImage_1*jHat +  0*kHat

into the expression editor and press apply I just get a bunch of error:

ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505
vtkFunctionParser (0DB26B70): Syntax error: expecting a variable name;
see position 0


ERROR: In ..\..\..\src\VTK\Common\vtkFunctionParser.cxx, line 1505
vtkFunctionParser (0DB26B70): Syntax error: expecting a variable name;
see position 0


Warning: In ..\..\..\src\VTK\Graphics\vtkArrayCalculator.cxx, line 394
vtkArrayCalculator (0DFAE8D0): An error occured when parsing the
calculator's function.  See previous errors.




If I select my .mhd file I can see that MetaImage is selected in the
top menu (its not possible to select anything else).

I am using version 3.6.1 on windows.

Any ideas are most welcome!





>
>
>>
>> in the expression editor.
>>
>> Next I add a glyph filter and specify that I only want 1000 points.
>>
>> Any ideas?
>> _____________________________________
>> 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.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
>
>
>
> --
> _________________________________
> Karthik Krishnan
> R&D Engineer,
> Kitware Inc.
> Ph: +1 5188814919, +91 9538477060
> Fax: 518 371 4573
>


More information about the Insight-users mailing list