other:dsx:x4d:matching_x-ray_and_drr_images
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:dsx:x4d:matching_x-ray_and_drr_images [2024/07/17 15:21] – sgranger | other:dsx:x4d:matching_x-ray_and_drr_images [2025/06/04 14:49] (current) – Updated links to account for merging two other pages together. All relevant links now point to other:dsx:x4d:x-ray_and_drr_settings. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Matching X-ray and DRR Images ====== | ====== Matching X-ray and DRR Images ====== | ||
+ | The process of matching the [[other: | ||
- | + | ===== Matching Process ===== | |
- | The process of matching the DRR images to the X-ray images is sensitive to the image processing parameters in the [[Other: | + | |
The processing method consists of: | The processing method consists of: | ||
- performing a Sobel edge detection on the image, | - performing a Sobel edge detection on the image, | ||
- | - thresholding the edge-detection image (which is controlled by the //Edge Capping// values in the [[Other:DSX:X4D:X-ray_Windows|//X-ray and DRR Settings//]] widget), | + | - thresholding the edge-detection image (which is controlled by the //Edge Capping// values in the [[other:dsx:x4d:x-ray_and_drr_settings|X-ray and DRR Settings]] widget), |
- | - multiplying the edge-detection image by a weighting factor (which is controlled by the // | + | - multiplying the edge-detection image by a weighting factor (which is controlled by the // |
- thresholding the merged image | - thresholding the merged image | ||
Line 17: | Line 17: | ||
After the edge image has been weighted and added to the original image, the result is thresholded using the //Image Threshold// values. All pixels above the //Image Threshold// maximum are set to the maximum, and all pixels below the //Image Threshold// minimum are set to 0. Much of the time these thresholds should be left at 100% and 0%. However, there are times when it is useful to raise the minimum above zero to mask soft tissue regions, and lower the maximum from 100% to remove artificial edges, such as the end of a CT bone that is within the X-ray image. | After the edge image has been weighted and added to the original image, the result is thresholded using the //Image Threshold// values. All pixels above the //Image Threshold// maximum are set to the maximum, and all pixels below the //Image Threshold// minimum are set to 0. Much of the time these thresholds should be left at 100% and 0%. However, there are times when it is useful to raise the minimum above zero to mask soft tissue regions, and lower the maximum from 100% to remove artificial edges, such as the end of a CT bone that is within the X-ray image. | ||
+ | |||
+ | ===== Considerations for Bone Tracking ===== | ||
The success of the bone tracking algorithm is particularly sensitive to the //Edge Capping// minimum for the X-ray images. A change in this value of 2 or 3 (percent) can make a big difference in the solution found by the optimization. If you find that the optimization is locking into a bad pose with the edge capping minimum set to 10%, try lowering the minimum to 7% or 8% (or even 5%) and try again. | The success of the bone tracking algorithm is particularly sensitive to the //Edge Capping// minimum for the X-ray images. A change in this value of 2 or 3 (percent) can make a big difference in the solution found by the optimization. If you find that the optimization is locking into a bad pose with the edge capping minimum set to 10%, try lowering the minimum to 7% or 8% (or even 5%) and try again. | ||
Line 22: | Line 24: | ||
When you start processing a new data set, it can take some trial and error to figure out the set of image processing parameters that produce the best results. It is recommended that you start by tracking the bones (individually) in a single frame, trying different parameter values until the optimization algorithm can lock onto the correct pose for each bone. Then try solving a few adjacent frames to see if the same parameter values work on those. | When you start processing a new data set, it can take some trial and error to figure out the set of image processing parameters that produce the best results. It is recommended that you start by tracking the bones (individually) in a single frame, trying different parameter values until the optimization algorithm can lock onto the correct pose for each bone. Then try solving a few adjacent frames to see if the same parameter values work on those. | ||
+ | ===== Image Metrics ===== | ||
+ | |||
+ | X4D can use one of two different image metrics to compare the X-ray and DRR images during object tracking: | ||
+ | - [[other: | ||
+ | - [[other: | ||
+ | ===== See Also ===== | ||
+ | See how X4D performs [[other: |
other/dsx/x4d/matching_x-ray_and_drr_images.1721229711.txt.gz · Last modified: 2024/07/17 15:21 by sgranger