[Paraview] Bug in image Calculator?
Max Schoebinger
m.schoebinger at dkfz-heidelberg.de
Fri May 13 10:12:14 EDT 2005
Hello,
I have attached the files I have used. For verification of vector
orientation I have used the glyph-filter with the following settings for
all images:
Orient-Mode = Vector
Scale Mode = Vector Magnitude
Scale Factor = 1
Vectors = Image File
If I "transform" the file coordinateField_3x3x3.mhd (see image
vectors-before-calculate.png) using the image calculator and the formula
ImageFile_0*iHat - ImageFile_1*jHat + ImageFile_2*kHat paraview-1.4.2
gave me the results i expected (vectors-after-calculate.png). Using
paraview versions >= 1.6 the glyphed output of the calculator looks the
same as depicted in vectors-before-calculate.png.
Note: in the current cvs version a bug has been fixed, which resulted in
flipped vector fields if they were read from mhd files. So if you use
the cvs-version from today, you have to swap the to images in mind ;-)
Anyway, i think this is unrelated to the calculator behaviour i am
observing.
Thanks,
Max
Berk Geveci wrote:
> I cannot reproduce this in ParaView 2.0 and the development version.
> How are you verifying that the vectors are not flipped? Are you using
> the glyph filter? If yes, did you make sure you are using the right
> vector in glyph (where it says Vectors on the Orient/Scale interface)?
>
> -Berk
>
> On 5/13/05, Max Schoebinger <m.schoebinger at dkfz-heidelberg.de> wrote:
>
>>Hi,
>>
>>if I try to flip the orientation of the y-component of the vectors in a
>>vector field according to the description given in
>>http://public.kitware.com/pipermail/insight-users/2004-August/010250.html
>>using the formula ImageFile_0*iHat - ImageFile_1*jHat + ImageFile_2*kHat
>>using all paraview versions above 1.4 nothing happens (which means, that
>>the output vector field is the same as the input vector field). Using
>>paraview 1.4.2 the results were as expected...
>>
>>Thanks,
>>
>>Max
>>_______________________________________________
>>ParaView mailing list
>>ParaView at paraview.org
>>http://www.paraview.org/mailman/listinfo/paraview
>>
>
>
--
Dipl.-Inform. Med. Max Schöbinger
Deutsches Krebsforschungszentrum (German Cancer Research Center)
Div. Medical & Biological Informatics Tel: (+49) 6221-42 2370
Im Neuenheimer Feld 280 Fax: (+49) 6221-42 2345
D-69120 Heidelberg E-Mail: M.Schoebinger at dkfz.de
-------------- next part --------------
ObjectType = Image
NDims = 3
BinaryData = True
BinaryDataByteOrderMSB = False
DimSize = 3 3 3
ElementNumberOfChannels = 3
ElementType = MET_UINT
ElementDataFile = coordinateField_3x3x3.raw
-------------- next part --------------
A non-text attachment was scrubbed...
Name: coordinateField_3x3x3.raw
Type: application/octet-stream
Size: 324 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20050513/c82b89d5/coordinateField_3x3x3-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectors-after-calculate.png
Type: image/png
Size: 18180 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20050513/c82b89d5/vectors-after-calculate-0001.png
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vectors-before-calculate.png
Type: image/png
Size: 13954 bytes
Desc: not available
Url : http://public.kitware.com/pipermail/paraview/attachments/20050513/c82b89d5/vectors-before-calculate-0001.png
More information about the ParaView
mailing list