Differences in between volume rendering and gray scale model in Registration

Operating system: Windows 10
Slicer version:4.11
Hello Slicer community,

I am unable to create accurate grey scale model so that its quality matches up to the standards of Volume rendering at the point of registration, somehow there is always a difference of 2-5mm in volume rendering and model after registration. I also tried to use the use shift value of the Volume rendering model to put it as a threshold(I don’t know if that are equal) assuming that they serve the same purpose, but that fails to create the accurate model. I tried by the segmentation method also by that is also not the one that we can use for the registration.
Can you tell what changes should I make to accurately create the model.? I am using T1MPRAGE images.

A surface mesh (closed surface representation of segmentation) will never be able to match what a dense 3D point cloud (volume rendering) can display.

If you want exact match between volume rendering and segmentation (or model) display then you need to dumb down the volume rendering to isosurface rendering by having a single step function as scalar opacity function. The step must go from 0 to 1 at the same X value that you use for thresholding in “Segment Editor” or “Grayscale model maker” module.

Thank you @lassoan for your reply. I will try it and get back to you soon with the results

Regards
Nayan

Hello @lassoan

Is there a way to perform ICP registration without making a model, current method that is available for the ICP, is the fiducial model registration(in SlicerIGT), for the model making is the mandatory step, but we want to perform the ICP on surface/volume rendering.
What would be the correct way to proceed for it.

ICP registration requires a mesh and a point cloud (or another mesh). Volume rendering does not provide a mesh (a solid surface): the depth where a point is placed when you click on volume-rendered image depends on the viewing angle. Therefore, you cannot use ICP to register a volume with a model.

You need to create a surface from the image (for example, using Segment Editor module) if you want to register an image with a volume using ICP method. However, there are other model-to-image registration methods that don’t require segmentation of the volume. You can ask on the ITK forum for details.

I do not know whether ITK would be the good platform to ask this question, but I will try to be more specific with my query.
What current navigations systems are using for the registration procedures is the surface/volume rendering(IMO), for the ICP registration, but with the current IGT module we have to create a model, so the question that has stuck on my mind is the how they are doing the surface registration on the volume rendering(its not hollow as model usually is), I know I can create model from the segment editor module that seems to be a very hefty and lengthy process and we have to do it every time for each patients, here I am looking for the one solution for all. One method that I can think of is, use a Foreground masking options, create a mask or the output image that is also creating models, but this method is not creating good surface meshes. What else do you suggest as a work around for the or is there way that we can create models that is not hollow.

In Slicer/SlicerIGT you get a full toolbox of modules allows you to experiment with a wide range of patient registration tools (landmark registration, point to surface registration, surface scan based registration, tracked ultrasound-guided registration, 3D printed guide based registration, fiducial marker set based registration, etc.).

These modules expose many options, which of course makes things look complex and you need to do a lot of clicking: manually switch between modules, select inputs/outputs, etc. However, you only use this this GUI when you are designing and testing your workflow in the lab in your first phantom experiments. Usually once you know exactly what you want to do and how, you write up a small Python scripted module to automate all the steps that do not require user inputs. You can tune this script by performing further phantom/animal/cadaver experiments and when everything works as expected then you proceed to patients.

By using the general-purpose GUI of multiple modules it probably takes about 15 clicks to do a point-to-surface patient registration. With your scripted module it will probably take just 2 clicks (set the threshold for surface generation then click OK when the surface looks good) and then you can collect landmark points for point-to-point registration without any further mouse clicks (e.g., by detecting stationary stylus tip or pivot gesture). If you want you can collect further points for point-to-surface (ICP) registration by tracing the surface using the stylus, using a physical button on the stylus or some automated outlier rejection.

If you describe what you want to register (knee, hip, brain, liver, breast, etc.), imaging modality, and procedure (hip/knee replacement, neurosurgery, RF ablation, lumpectomy, etc.) you are interested in then we can give more specific advice.

Thank Lasso for the detailed reply,

We are doing it for Neurosurgeries, and we have automated all the things, the thing we could not achieve is the good accuracy of surface registration with the model, whatever the threshold we set, it always has a large error, we have tried it multiple times, in our lab on phantom and also in the OT, error in the sense that, we can see the tip, going inside the dura, whose exact location has to be on the surface, we can not achieve good accuracy than, we have to skip surface registration due to the model issues and have to satisfy ourselves with the fiducial registration, which can be achieved on rendering itself.

Thanks
Nayan

Did you check if Partial Surface Registration is useful for you?

There could be many reasons for registration inaccuracy. If you can attach a couple of images showing your surfaces and landmarks, and the resulting mismatched surface then it may give some clues.

Partial surface registration (register only those part pf the surface meshes that are near the region of interest) that @mau_igna_06 recommended above could alleviate some of the problems (e.g., MRI distortion).

Dear @mau_igna_06
I went through the tutorial of your tools, I don’t think it is useful for me.

Thank you for the support.

Dear @lassoan

Here I am attaching the images.


With CT image of a phantom and optical tracking the total system error should be below 1mm.

For this, you need to get everything right. Just a few examples of what you need to pay attention to:

  • use rigid tools: preferably use metal markers; if you use plastic markers then make sure they are not deformed during use (even 1mm displacement of a marker would ruin your entire system accuracy); 3D-printed plastic is OK but resin is not reliable (it slowly deforms)
  • use rigid marker mounting: use screws or hot glue to fix the tracking marker to the phantom and the stylus (tape, blu tack, etc. are not rigid enough)
  • marker design: make the marker larger for higher accuracy, have at least one marker out of plane (there are many other design guidelines for marker design, look them up in publications or your tracker’s documentation), make sure the marker balls are not damaged
  • stylus design: use sharp tip, place the marker as close as possible to the tip
  • stylus sharp tip, pivot on hard but non-slip material
  • position the camera so that markers are at optimal direction and distance from the tracking camera
  • pivot calibration: use rigid but non-slip surface, pivot in as much angle range as possible but make sure the marker can be tracked accurately in that range; the error should be less than 0.2 mm
  • landmark registration (between fiducial points marked on the image and on the physical phantom): collect 6-10 landmarks, distributed around all sides of the phantom; the RMS error should be less than 0.2mm.

With Fiducials-model registration (ICP registration between the CT-derived surface and many points that you acquire with the stylus) you can further increase accuracy of the registration in the region where you acquire the many points, but only if the region contains high-curvature areas. If you only collected points on the top or back of the head (a spherical shape) would completely throw off your registration.

Until the fiducial registration with the rendering we are good, we do not get such large errors with that, but as soon as we switch to the surface registration part, which requires the model to collect the points, we get this kind of accuracy, so from our perception, problem lies in the model making rather than the registrations, we tried making the model using the shift function of the volume rendering, still we could not get good accuracy, rest all, we have managed to do as you have mentioned.
Here is the one solution that I was thinking, can we convert dicom images directly into labelmap and then convert that labelmap directly into model, may be then we have to set the different parameters, to get the accurate surfaces, that we can manage, that would not be an issue.

Please post a screenshot that shows the collected points on the surface and the registration module’s GUI after the registration is complete. It is even better if you can share the scene (save the scene as .mrb file, upload to OneDrive/dropbox/Google drive and post the link here).