Creating .mha files

Main limitation of ArUco’s tracking is inaccuracy in estimating how far is the marker from the camera, as it completely relies on measuring the marker size and so a single pixel error in marker corner estimation can lead to millimeters or centimeters of errors. With a stereo setup, you can estimate distance from triangulation instead, which should be much more accurate. Therefore, yes, I would expect that with a stereo camera you can significantly improve on ArUco’s single-camera tracking.

Which team in Vanderbilt?

Bob Webster’s group works on developing ultrasound guidance for daVinci robot using Slicer/SlicerIGT .

Hi,

I have 2 questions after working on IGSIO and Slicer 3D.

  1. Does the Slicer3D do an automatic scaling? From the tracker we obtain the position of the probe in meters and despite the fact that I multiply by 1000 to convert them in mm (to render the volume in Slicer), the volume appears to another part of the scene without being scaled .

  2. I tried to set as ImageToProbe matrix the identity matrix but I am getting an error . I realize that the error is because it can not compute the ouput extent . Does Slicer have any limit on this ?

  1. Where are you setting the dimensions and spacing of the image?
  2. What error are you seeing?
  1. In the VolumeReconstructorTest.cxx , I set for each frame the “ProbeToReference” matrix and the “ImageToProbe” is set reading the configuration file. I calculate the ProbeToReference by the tracker and it is computed in meters. So I multiply only the translation part of this matrix with 1000.
    The dimensions and the spacing of the image are read in the configuration file.

2.I am not getting an error. It crashes after the oupout: " Set Volume Output extent" .
As I can not use the identity matrix for the ImageToProbe , I use one matrix of your examples and it works. But it is not the transformation that I want.

image

Thi is the error.

I think I solved the 2nd problem. I changed the “Ouptut Space” from “0.5 0.5 0.5” to “1 1 1” and it is working.

Could you help me to the question 1?

Do you know the relation between mm and pixels in slicer3D?

https://www.slicer.org/wiki/Coordinate_systems

Related to EditSequenceFile: as we had a discourse about merging image data with transform data, this might be the option!

One problem: when the EditSequenceFile.exe, the window disappears within sec?!
The Plus version is the latest stable version.

@kristjanq I’m assuming you just double clicked on the EditSequenceFile exe? It does not have a GUI and is just a command line tool. So you should open up any terminal window and then call to run EditSequenceFile.exe followed with the appropriate command line flags.

2 Likes

@jamesobutler Acctually I double-clicked the corresponding .exe. But as you explained I had to run it through Comand Promt, it worked!