Table of Contents
Introduction to xManager
The purpose of this tutorial is to guide you in the creation of a subject file in DSX Manager.
The instructions for this tutorial are purposely designed to be general so that you can use your own data.
Subject
Sessions
Calibration Devices
Grid Devices
Trackable Objects
Complete Trackable Objects | ||||||||||||||||||||||||
Click on the new object in the tree view to display its properties in the panel on the right. | General | Name - The name entered will replace the newobject tag in the tree on the left hand side of the screen. Mocap Segment Name - The mocap segment name is entered if motion capture data will be used to position this object before tracking. The mocap segment name should be the segment name in the Visual3D kinematic model to which this object is rigidly attached. Weighted Center - Do not enter the Weighted Center coordinates. These will be calculated when you load the object into X4D, and are only for internal use in that program. | File Data | The File Data section contains the four data files for the object and is displayed when the checkbox is selected. Image File - This file is the segmented and cropped CT/MRI file that represents the object. It is generated in Surface3D (or third-party applications like Mimics or ScanIP). If you use Surface3D to create this file, you do not need to enter any of the parameters such as image size and voxel size; Surface3D will calculate them and automatically add them to the file specification. If you use a third-party application to create this file you will need to enter this information manually. Surface File - This file is the polygonal mesh representing the surface of the object. This file is generated in Surface3D (or a third-party application). If you use Surface3D to create this file, it will automatically add the file path and units to the subject file so you do not need to manually enter them here. If you use a third-party application to create this file you will need to enter this information manually. ROI Surface File - This file is the Surface File after regions of interest have been defined on it, and it has been transformed into its local (anatomical) reference frame. It is generated by Orient3D so you do not need to specify it manually here. If you export tracked DSX trials to a CMZ file for analysis in Visual3D, the ROI Surface File for each tracked object will be added to the CMZ. Visual3D expects these object surfaces to be defined in meters, so that is the default unit for these files. Inner Surface File - This optional file is used only by the Image Data Generator widget in Orient3D to make 3D image data (Image Files) from surface models. This widget is primarily used for generating simulated CT data from surface models created from MRI. If the object has an Inner Surface File when the Image Data Generator is used, voxels between the outer surface and the inner surface will be given the specified cortical density, and voxels inside the inner surface will be given the specified cancellous density. This creates more realistic simulated CT data then using only the Surface File and a constant cortical thickness. The Inner Surface File must be in the same units and reference frame as the Surface File. It should be a closed polygonal surface without holes, and it should not connect to or intersect with the outer surface. For more information on importing image and surface files from third-party applications, follow the tutorial How To: Import Third-Party Image and Surface Files | Reference Frame | The Reference Frame section is displayed when the checkbox is selected. Reference Frame - This is the transformation from the CT frame of the object (defined implicitly by the Image File) to the local (anatomical) frame of the object. This transformation is calculated by Orient3D and does not need to be entered manually unless you determine the local frame of the object using a third-party program. In that case you can type in the values into the number fields or load a 4×4 matrix from a comma-delimited text file. If the number fields are blank it means that no local reference frame has been defined. | Landmarks | The Landmarks section is displayed when the checkbox is selected. Landmarks - These are created when using Surface3D (Mimics or ScanIP can also be used in place of Surface3D ) and Orient3D. Landmarks created by Surface3D and Orient3D are automatically populated in the landmarks section. Landmarks can also can also be entered manually. | Points of Interest | The Points of Interest section is displayed when the checkbox is selected. Points of Interest - These are created in Surface3D (or Mimics or ScanIP), but can also be entered manually. An object must be created for each object you want to track in the x-ray trials (e.g., bones, implants), as well as an object for your lab’s calibration object. | Sample Trackable Objects | For the sample data in this tutorial two objects need to be created. 1. * Name - left_femur * Mocap Segment Name - LeftFemur * Type - bone No other data needs to be entered for this object. 2. * Name - left_tibia * Mocap Segment Name - LeftTibia * Type - bone No other data needs to be entered for this object. |
Configurations
Complete Configurations | ||||||||||||||||||||||||||||
Click on the new configuration in the tree view to display its properties in the panel on the right. | General | Name - The name entered will replace the newconfiguration tag in the tree on the left hand side of the screen. Date - The date that the data was collected. | Lab to Mocap Transformation | Lab to Mocap Transformation - This provides the transformation between the lab space and the motion capture file. This information is calculated in CalibrateDSX, so it does not need to be manually entered. | Setup | A Setup section is automatically created in all configurations, which allows the two x-ray views to be defined and the parameters of the 3D configuration of the x-ray equipment to be entered. * Name - The name of the x-ray view. Rename view1 to inline and view2 to offset. Note: All of the view parameters below the name are calculated in CalibrateDSX, so they do not need to be entered here. Source Position in Lab Coordinates - This is the XYZ location of the x-ray source in the lab frame. Image Position in Lab Coordinates - This is the XYZ location of the geometric center of the x-ray image (not the perpendicular projection point of the x-ray source) in the lab frame. Image Orientation - These are the XYZ Euler angles expressing the orientation of the x-ray image in the lab frame. Base Pixel Size - This is the XY size of the pixels in the x-ray image, as calculated from the grid image. | Calibration | A Calibration section is automatically created for each Configuration, it includes three calibration trials. Source: Image Distances - This panel is shown on the right hand side of the screen when Calibration is selected. The values entered are the approximate distances between the x-ray source and the x-ray image for each view. These values are used in the DLT algorithm that calculates the 3D configuration parameters. The values you specify here should be within a few millimeters of the actual distances (which the DLT will calculate). | Uniformity | The Uniformity trial is for the “blank” x-ray images, which are used to correct for non-uniformity in the x-ray intensity across the image. * Name - The name is initialized to 'intensity' and should not be changed. * Type - The type drop down menu only contains the type 'Uniformity' since it is pre-set. * Time - This is the time of the file being recorded. * Reporting Times - The Reporting Times for each trial will be calculated automatically from the views’ frame times when the trial is first loaded into an application (or when you press the calculate button), but they can also specified by typing the value into the field or browsing for a file. View For the Uniformity and Distortion trials, select the views for which you have x-ray data using the checkboxes, then click on the view name to show its properties in the panel on the right. Inline * Name - This is the name that will be listed in the name table on the left side of the View section. * Raw File - The Raw File section contains the uncorrected x-ray image sequence captured by the camera. If your raw x-ray file has frame times specified in it (for example, CINE files) you do not need to specify the frequency or the frame times. DSX Manager will read this information from the file and store it in the Frame Times field when you first load the trial into an application, or when you press the calculate button. \\ The settings for Uniformity - Inline should be: \\ *File Path to iwhite3.cine, \\ *File Format CINE, and \\ *Frequency 150.00. \\
\\ The settings for Uniformity - Offset should be: \\ *File Path to owhite3.cine, \\ *File Format CINE, and \\ *Frequency 150.00.\\
| Distortion | The Distortion trial is for the images of the grid object, which can be either a radiopaque sheet with holes in it, or radiopaque beads on a radiolucent sheet. The regular spacing of the holes/beads is used to correct for distortion of the xray trajectories in the field of view. The setting for Distortion - Inline should be: File Path to igrid3.cine, File Format CINE, and Frequency 150.00. The settings for Distortion - Offset should be: File Path to ogrid3.cine, File Format CINE, and Frequency 150.00. | 3D | The 3D trial is for the images of the calibration object. These images are used to calculate the 3D configuration parameters of each view. Name - The name is initialized to 'calibration' and should not be changed. Type - The type drop down menu only contains the type '3D Calibration' since it is pre-set. Time - This is the time of the file being recorded. Reporting Times - The Reporting Times for each trial will be calculated automatically from the views’ frame times when the trial is first loaded into an application (or when you press the calculate button), but they can also specified by typing the value into the field or browsing for a file. For the 3D trial, the views are specified the same way as in the Uniformity and Distortion trials, but there are additional parameters related to motion capture data and the calibration object. Mocap Parameters The Mocap Parameters section contains the name of the C3D file with the motion capture data for the calibration object. This file is needed in order to calculate the transformation between the motion capture reference frame and the X-ray reference frame. The file path should lead to the cube3.c3d file in the configuration's file. Tracked Bodies The Tracked Bodies section is available when the checkbox is selected. In the Tracked Bodies section of the 3D trial, check the box for the calibration object defined in the session’s Objects section. For this tutorial, check the cube option. You do not need to specify any of the calibration object’s files; they will be created during the calibration process. Views The Views section is available when the checkbox is selected. The setting for 3D - Inline should be: File Path to cube3_Cam_Inline_Cine1.cine, File Format CINE, and Frequency 150.00. The settings for 3D - Offset should be: File Path to cube3_Cam_Offset_Cine1.cine, File Format CINE, and Frequency 150.00. |
Trials
Second Configuration
Add A Second Configuration |
Using the instructions above, create a second configuration named “Left Level Walk” and complete it with the following information: General \\ Name - Left Level Walk\\
\\ Name view1 - inline\\ Name view2 - offset\\
\\ Inline - 1796.0\\ Offset - 1795.0\\
\\ Name - intensity\\ Type - Uniformity\\ Time - 3:54 PM\\
\\ View Name - inline\\ Raw File, File Path - iwhite4.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ View Name - offset\\ Raw File, File Path - owhite4.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ Name - grid\\ Type - Distortion\\ Time - 3:54\\
\\ View Name - inline\\ Raw File, File Path - igrid4.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ View Name - offset\\ Raw File, File Path - ogrid4.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ Name - cube\\ Type - 3D Calibration\\ Time - 3:54 PM\\
\\ Mocap Parameters, C3D File Name - cube4.c3d\\
\\ Tracked Bodies - Checkmark next to cube\\
\\ View Name - inline\\ Raw File, File Path - cube4_Cam_Inline_Cine1.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ View Name - offset\\ Raw File, File Path - cube4_Cam_Offset_Cine1.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ Name - LLW 2\\ Type - Motion\\ Reference Trial - LeftStand\\ Time - 3:54 PM\\
\\ Mocap Parameters\\ C3D File Name - llw2.c3d\\ Time Offset - 0.00\\
\\ Generalized Coordinates\\ Name - FlexExt\\ Min - -90\\ Max - 90\\
\\ Tracked Bodies - Checkmark next to left_femur and left_tibia\\
\\ View Name - inline\\ Raw File, File Path - llw2_Cam_Inline_Cine1.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\
\\ View Name - offset\\ Raw File, File Path - llw2_Cam_Offset_Cine1.cine\\ File Format - CINE\\ Frequency (Hz) - 150.00\\ |