other:dsx:calibratedsx:tutorials:correcting_images_and_3d_calibration
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:dsx:calibratedsx:tutorials:correcting_images_and_3d_calibration [2024/07/17 15:42] – removed sgranger | other:dsx:calibratedsx:tutorials:correcting_images_and_3d_calibration [2025/02/15 06:44] (current) – Cleaned up page, added headers, and added backlink to tutorials overview. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How To: Correct Images and 3D Calibration ====== | ||
+ | |||
+ | This is the general procedure for correcting the calibration X-ray images and using them to calculate the 3D configuration of the X-ray hardware. It can be used with nearly all types of grid and calibration objects. The following steps assume that you have already configured your subject file with all of the unprocessed data files for the calibration and subject trials, but have not corrected any of the trial images yet: | ||
+ | |||
+ | ===== Optimize Image Correction Parameters ===== | ||
+ | |||
+ | - Load the subject file containing the uncorrected trial images (calibration trials as well as static and dynamic trials of the subject). | ||
+ | - Select the session and configuration that you want to process. | ||
+ | - Select a dynamic trial of the subject. Before performing any image correction or calibration, | ||
+ | - Open the [[Other: | ||
+ | - Once you have determined the best filter parameter values for your images, click on //Copy Parameters to Image Correction// | ||
+ | |||
+ | ===== Correct Calibration Trial Images ===== | ||
+ | |||
+ | - Select the intensity trial. You will be prompted to correct them and save the subject file. Correction of intensity images involves removing outliers (image slices whose average intensity is more than two standard deviations from the overall average) and then averaging the remaining slices. CalibrateDSX will save the corrected intensity images to TIFF files in the same folder as the uncorrected images. Note: white images and intensity correction are optional; if you do not have them you can skip this step and the next. In this case the other trial images will simply be inverted instead of uniformity corrected. | ||
+ | - Open the [[Other: | ||
+ | - Select the grid trial. You will be prompted to correct them and save the subject file. CalibrateDSX will correct the grid images for both views using the intensity images, then save them to TIFF files in the same folder as the uncorrected images. Note: grid images and distortion correction are optional. If you do not have grid images you can skip this step and the next. | ||
+ | - In the //Grid Trial// section of the [[Other: | ||
+ | |||
+ | ===== Calculate 3D Configuration ===== | ||
+ | |||
+ | - Select the calibration object trial. CalibrateDSX will correct the calibration images for both views using the intensity images and the grid images. As with the grid images, it will write TIFF files in the same folder as the uncorrected images. | ||
+ | - Verify that distortion correction worked properly by pressing the G key in each X-ray window to display the "grid check" images. Every time CalibrateDSX distortion corrects a trial, it also corrects the grid images themselves. By viewing them you can confirm that all of the appropriate beads/holes were identified and adjusted properly into straight lines. If they were not, you will need to delete the corrected calibration trial images in xManager and go back to the grid trial to readjust the parameters. When done viewing the grid check images, press G again to return to the calibration object images. | ||
+ | - Open the [[Other: | ||
+ | - If your calibration object contains tokens that you want to digitize (e.g., the pyramid, helix, dome, and jack in the Lego cube object designed by Brown University), | ||
+ | - Once you have digitized four or five beads or tokens, save their locations to text files. Use the command // | ||
+ | - Open the [[Other: | ||
+ | - You are now ready to have CalibrateDSX try to predict the locations of the undigitized beads in both views. Select // | ||
+ | - Check the digitized beads. Sometimes a few beads are not identified correctly, or identified at all. You can use the mouse wheel to zoom in and out of the images to check for errors (press ' | ||
+ | - Once you are satisfied with the digitized bead locations, delete the points for any tokens that you do not want to include in the DLT calculations (e.g., the pyramid, jack, dome, and helix in the Lego cube). Then save the POI locations to files again. | ||
+ | - You now have a full set of calibration beads for the first X-ray image in each view. If your calibration object trial contains more than one time frame of X-ray data, you can have CalibrateDSX automatically identify the same beads in all of the other frames. Using multiple frames of beads can potentially improve the accuracy of the 3D calculations slightly because the bead locations will be averaged over all of the frames. Use the // | ||
+ | - Perform the DLT to compute the 3D configuration. Select // | ||
+ | - When you are satisfied with the residuals, select // | ||
+ | |||
+ | ===== Correct Static and Dynamic Trials ===== | ||
+ | |||
+ | - To correct the trials of the DSX subject, use the command // | ||
+ | - Select // | ||
+ | |||
+ | ===== Notes ===== | ||
+ | |||
+ | If your subject file contains other sessions or configurations that you want to process, you can repeat this entire procedure for each one. | ||
+ | |||
+ | ===== See Also ===== | ||
+ | |||
+ | Go back to an overview of [[other: | ||
+ | |||
other/dsx/calibratedsx/tutorials/correcting_images_and_3d_calibration.1721230979.txt.gz · Last modified: 2024/07/17 15:42 by sgranger