other:dsx:xmanager:tutorials:how_to_create_a_subject
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
other:dsx:xmanager:tutorials:how_to_create_a_subject [2024/07/16 17:01] – removed sgranger | other:dsx:xmanager:tutorials:how_to_create_a_subject [2024/12/20 14:14] (current) – Added section headers as sign posts. wikisysop | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ===== How to Create a Subject ===== | ||
+ | |||
+ | This tutorial walks through the steps of creating a subject in xManager for use in the DSX Suite. | ||
+ | |||
+ | ==== Set File Paths ==== | ||
+ | |||
+ | 1) Select //New Subject// from the //File// menu. Use the file browser to create a new .dsx file to hold this subject' | ||
+ | |||
+ | 2) Click on the default //ID// (0000) in the tree view in the left panel. The right panel will display the subject information. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 3) Specify the ID, subject name, and study description. //Time Precision// is the number of digits after the decimal point for all time stamps in DSX. This is the precision used to store times in the subject file and to compare times to each other. For //Units//, it is recommended that you leave it at the default of millimeters. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 4) Right-click on // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 5) Click on the default name of " | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 6) Specify the session name and subject metrics. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 7) Click on the //Paths// checkbox. Paths are shortcuts that are used to make data file locations relative to the path value. When a new file path is added to the subject file, xManager will replace part of the file path with a path shortcut if it can find a matching one. The DSX applications use these path shortcuts to keep the data directory structure organized. If you define path shortcuts for all of the data folders for a subject, and make all of them relative to the subject file, you will be able to move an entire subject data folder to a new location on your computer (or another computer) and not have to change any file paths. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 8) Right-click on the empty part of the path list and select //Add Path// from the menu. | ||
+ | |||
+ | 9) Click on the browse button on the right to browse for a folder. | ||
+ | |||
+ | 10) Double-click on the path's name and enter an appropriate name. | ||
+ | |||
+ | 11) Click on the // | ||
+ | |||
+ | 12) Repeat steps 8 - 11 for all paths you want to define. You might want one for the X-ray files, one for the CT files, one for the surface model files, and one for the motion capture files. Or you might want one for each trial and/or each X-ray configuration. | ||
+ | |||
+ | 13) You do not need to specify the //CMO File Name//. You will be prompted for a name in one of the other applications when this file is created. | ||
+ | |||
+ | ==== Scan Data ==== | ||
+ | |||
+ | 14) Click on the //Scan Data// checkbox to display the scan data information. | ||
+ | |||
+ | 15) Right-click on the empty part of the list and select //Add Scan Data// from the menu. | ||
+ | |||
+ | 16) Click on the edit icon on the right to display the scan data dialog. Use it to select the 3D image data. If the data is a set of 2D images, choose the first image in the file browser. | ||
+ | |||
+ | 17) Repeat steps 15 - 16 for all 3D image data sets for this session. | ||
+ | |||
+ | ==== Trackable Objects ==== | ||
+ | |||
+ | 18) Click on the arrow next to the session name in the tree to reveal //Trackable Objects//, // | ||
+ | |||
+ | 19) Right-click on //Trackable Objects// and select //Add Trackable Object// from the menu. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 20) Click on " | ||
+ | |||
+ | 21) Fill in the object information. The //Mocap Segment Name// is the name of the segment in the Visual3D kinematic model that corresponds to this object. You do not need to specify the //Weighted Center//; this will be calculated automatically when the object' | ||
+ | |||
+ | 22) //Color// is the color of the object' | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 23) //File Data// for an object contains: | ||
+ | |||
+ | - //Image File//: the segmented 3D image data (CT) representing the object. If use use Surface3D to segment the object from the image data, you do not need to specify the file now. If you create it using a third-party program such as Mimics or ScanIP, specify the file here. | ||
+ | - //Surface File//: the polygonal file (OBJ) representing the surface of the object, defined in the CT reference frame. If you plan to generate the surface model in [[Other: | ||
+ | - //ROI Surface File//: the same surface model of the object, but with regions of interest and defined in the object' | ||
+ | - //Inner Surface File//: the polygonal file (OBJ) representing the inner boundary of the cortical bone of an object, defined in the CT reference frame. This file is used when tracking bones derived from MRI data. If you create a Surface file representing the outer boundary of the cortical bone, and an Inner Surface File representing the inner boundary, you can create simulated CT data from them using the [[Other: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 24) //Reference Frame// is the 4x4 transform from the object' | ||
+ | |||
+ | 25) // | ||
+ | |||
+ | 26) //Points of Interest// are points on the object that can be tracked in the X-ray images, such as beads implanted in bones or beads in a calibration object. To add a POI, right-click on the empty part of the POI list and select //Add POI// from the menu. For the calibration object, create a POI for each bead in the object. The //Radius// should be the radius of the physical bead, which is usually specified in millimeters. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 27) Repeat steps 19 - 26 for all objects in this session. | ||
+ | |||
+ | ==== Calibration Devices ==== | ||
+ | |||
+ | 28) Right-click on // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 29) Click on " | ||
+ | |||
+ | Fill in the data for device' | ||
+ | |||
+ | If you want to synchronize your dynamic X-ray images with motion capture data, you need to put at least three motion capture markers on the calibration device and specify their locations and radii. The coordinates of these mocap markers are specified in the X-ray lab reference frame. Once they are tracked by the motion capture system during collection of the X-ray images of the calibration device, the transform from the X-ray lab frame to the motion capture frame can be computed by [[Other: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 30) Right-click on //Grid Devices// and select //Add Grid Device// from the menu. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 31) Click on " | ||
+ | |||
+ | Specify the grid properties. | ||
+ | |||
+ | Type - the type of grid. //Holes// refers to a radiopaque sheet with punched or drilled holes. //Beads// refers to a radiolucent sheet with embedded radiopaque beads. | ||
+ | X Spacing - the distance, in millimeters, | ||
+ | Y Spacing - the distance, in millimeters, | ||
+ | XY Angle - the angle between the X and Y axes of beads/holes in the grid object. For hex grids, this parameter can be set to 60.0 or 120.0. The default value is 90.0. | ||
+ | X Angle - the angle between the X axis of grid beads/holes and the X axis of the grid image. If the grid X axis is supposed to be aligned with the image intensifiers, | ||
+ | {{: | ||
+ | |||
+ | 32) Right-click on // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 33) Click on " | ||
+ | |||
+ | 34) Set the name and date. The //Lab to Mocap Transformation// | ||
+ | |||
+ | 35) Click on the arrow next to the configuration name in the tree to reveal //Setup//, // | ||
+ | |||
+ | 36) Click on the arrow next to //Setup// to reveal //Views//, then click on the arrow next to //Views// to reveal the two default X-ray views. | ||
+ | |||
+ | 37) Click on each view and set its name. The other parameters are calculated in [[Other: | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 38) Click on // | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 39) Click on the arrow next to // | ||
+ | |||
+ | 40) For each of the three calibration trials: | ||
+ | |||
+ | - Click on it in the tree to display its information in the panel on the right. | ||
+ | - Click on the //Views// checkbox to reveal the views. | ||
+ | - Click on the first view in the list. Specify the //Raw File// containing the uncorrected X-ray data for this view. | ||
+ | - Click on the second view in the list. Specify the //Raw File// containing the uncorrected X-ray data for this view. | ||
+ | |||
+ | 41) For the Distortion trial, select the grid device that you created in steps 30 and 31. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | 42) Right-click on //Trials// (not // | ||
+ | |||
+ | 43) Click on " | ||
+ | |||
+ | 44) Set the trial name. Choose whether the trial type is // | ||
+ | |||
+ | 45) If the type is // | ||
+ | |||
+ | 46) If the type is //motion//, specify the corresponding C3D file, if any. Also choose the reference trial for this trial. For both types of trials, specify the //Time Offset//, which is the start time of the X-ray data collection minus the start time of the motion capture data collection. | ||
+ | |||
+ | 47) Click on //Tracked Bodies// to reveal the list of objects that are defined in the //Objects// section of the tree. For each of the objects in the list that can be tracked in this trial, check its box. If you click on the object name, the object' | ||
+ | |||
+ | 48) Click on the //Views// checkbox at the bottom of the right panel to reveal the views. | ||
+ | |||
+ | 49) Click on the first view in the list. Specify the //Raw File// containing the X-ray data for this view. | ||
+ | |||
+ | 50) Click on the second view in the list. Specify the //Raw File// containing the X-ray data for this view. | ||
+ | |||
+ | ==== Trials, Configurations, | ||
+ | |||
+ | You have now set up a specific trial for a given configuration. In order to finish creating your subject: | ||
+ | |||
+ | 51) Repeat steps 37 - 45 for all trials in this configuration. | ||
+ | |||
+ | 52) Repeat steps 28 - 46 for all configurations in this session. | ||
+ | |||
+ | 53) Repeat steps 4 - 47 for all sessions in this subject. | ||
+ | |||
+ | {{: | ||
+ | |||
+ | |||
other/dsx/xmanager/tutorials/how_to_create_a_subject.1721149316.txt.gz · Last modified: 2024/07/16 17:01 by sgranger