Attached are two volumes that have an overlap in paraview but the ITK volume I find using the code below means there should be no overlap



On 14/11/16 15:09, Cory Quammen wrote:
MHA and NIFTII definitely contain position information that ParaView
should read. Do you have any small-ish representative volumes you can
share (privately with me if needed).

On Mon, Nov 14, 2016 at 10:04 AM, padraig <[email protected]> wrote:
I have used MHA and NIFTII. I have converted the MHA into NIFTII using both
c3d and ITK.



On 14/11/16 14:59, Cory Quammen wrote:
What file format are you using to load the volumes into ParaView? A
number of formats support volume positioning, so this should be
possible, unless you are loading a series of TIFF images, for example.

Thanks,
Cory

On Mon, Nov 14, 2016 at 5:32 AM, padraig <[email protected]> wrote:
Dear list,

I have been having problems with the positioning of volumes using
Paraview.
ITK tells me that, using,

      IteratorType  it2( img_input, img_input->GetLargestPossibleRegion()
);

      it2.GoToBegin();
      ImageType::IndexType begin = it2.GetIndex();
      img_input->TransformIndexToPhysicalPoint(it2.GetIndex(),p0);
      it2.GoToEnd();
      --it2;
      img_input->TransformIndexToPhysicalPoint(it2.GetIndex(),p1);
      std::cout << p0 <<  p1 << std::endl;

   two volumes I have have the positions


[-102.536, -106.413, 30.1491][102.512, 106.414, 177.564]

and

[-102.536, -106.413, 30.1491][102.512, 106.414, -117.265]

When I load these into Paraview they occupy the same volume. In Slicer3D
the
volumes are distinct as I expect above.

Thanks
Pádraig
_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview





Attachment: vol1.nii.gz
Description: application/gzip

Attachment: vol2.nii.gz
Description: application/gzip

_______________________________________________
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview

Reply via email to