If your visual assessment and Vicon Shogun Post's diagnostic tools have revealed issues with your recorded data (see Check data quality), you can use its cleanup tools to correct mislabels and fill any gaps.
Important Before filling gaps, you must find and fix any labeling swaps or errors in your data. Gap-filling in Shogun relies on the data before and after the gaps to predict marker location, so any labeling errors will cause gap-filling to fail. |
The following topics provide an introduction to fixing data issues:
|
See also the related Vicon videos: 5 - Shogun Post – Labeling Data and 6 - Shogun Post - Marker Editing.
|
|
Note that each time you finish cleaning up a range, you must check its solve (see Solve during cleanup).
To help you identify and fix bad data, you can use the Marker Editing panel.
To find and remove bad data:
Noise can be easily identified in a Graph view:
It also produces flickering as you play through a take in the 3D Scene view. You can fix it with the filtering options in the Marker Editing panel.
To fix noisy data:
Tip: To display a tooltip for any of the controls, hover the mouse pointer over the relevant control.
When you apply filtering, the Smooth In/Out option in the Marker Editing panel provides smooth blending at the start and end of the filtered section of a trajectory curve.
The following example shows a Graph view of a trajectory curve that requires smoothing.
With Smooth In/Out cleared, when filtering is applied, the curve is made smoother, but the start and end does not take into account what is either side of the smoothed section, resulting in a straight line, with an unwanted angle at the end.
For details, see the following steps or watch Vicon Shogun 1.3 Post Tutorial - Filter in/out Smoothing on YouTube.
|
To give a smoother start and end to the filtered section of a trajectory:
If you want to change how much of the trajectory is affected on either side of the gap, edit the value of the adjacent field. The default is 0.2 (20%). Smoothing works by blending between the original and filtered result by progressively more or less, across the smoothing range.
You can fix labeling issues using the tools in the Labeling panel. The following steps introduce the main components of the labeling panel. To go straight to examples of how to use it to fix labeling issues, see Fix common labeling issues.
To use the Labeling panel:
Tip:
By default, the selection in the
Current Subject
list at the top (middle) of the Shogun Post window determines which subject to label.
If All is selected in the Current Subject list, the labeler uses the last subject it was set to. If you want to select a subject different from that specified in the Current Subject list, in the Labeling panel, clear the Use Current Subject box and select the required subject from the Subject list at the left of the check box.
On the left of the Labeling panel, a list of labels for the selected subject is displayed. The color variations indicate marker issues:
Tip: To quickly switch between labeling and select modes when labeling a subject, you can use the default hot key (L) that duplicates the functionality of the Label and Select buttons at the top of the Labeling panel.
In the Direction line, choose to label forward (through time) or backward
.
You can also select both options (ie, label both forward and backward), but to help you avoid confusion, at least initially, choose either backward or forward and use only that option.
In the Manual Labeling Tools section in the middle of the Labeling panel, you can correct swaps, unlabel information, and unlabel markers.
In the Semi-Automated Labelers section, you can access the Velocity Labeler, which is normally used after automated labeling, on a partially labeled take. You can use it to correct labeling where the path of a single marker consists of multiple trajectories that are consecutive in time with a small gap in between where the marker is unlabeled over part of its trajectory. The Velocity Label option is useful when a marker has been labeled for a range of time, and then becomes unlabeled, yet going forward or backward in time there are multiple trajectories that do not have a large gap between them and are all the same marker. It is best suited for cases when unlabeled trajectories are not many frames away from the labeled marker and the velocity of the marker around the end of the labeled marker and the start of the unlabeled trajectory is fairly constant.
The following basic procedures are just a few of the ways in which you can use Shogun Post to clean up data.
See also:
Vicon Shogun 1.3 Post Tutorial - Gap List & Auto Rigid Fill on YouTube.
|
Split the 3D Scene view (at the top right of the Shogun Post window, click the vertical split button ) and in one of the panes, change to a Graph view, so that you can now see a 3D Scene view, a Graph view and the Labeling panel.
However, you now have a previously incorrectly labeled marker that is unlabeled from this point forward.
After you have corrected any swaps, you may want to use Shogun Post's diagnostic tools to help to identify gaps (see Check data quality).
You can view all the gaps in your scene in the Marker Editing panel, in the Fill Gaps section, by looking at the Gap List. (If you can't see the list, at the top of the Marker Editing panel, click the Gap List button.)
To make it easy to find the longest gaps, click the Length column heading to rearrange the list, with the longest gap at the top.
When you select a gap in the list, it is automatically displayed in the Graph view, enabling you to edit it.
You can then decide the best approach for filling the gaps:
Tip: To undo unwanted gap-filling, click Undo on the quick access toolbar .
Shogun Post enables you to automatically fill gaps using a rigid fill operation. This looks at all the markers in your scene and then compares them against the marker you are trying to fill. It then uses a combination of similarly moving markers to fill the gap. Finally, it checks the fill to make sure it looks correct and if not, it chooses another set of markers.
This process is also available via scripting, using the selectMarkersForRigidFill command to select the markers and the autoFillGaps command to fill them. For information on these commands, see HSL scripting with Vicon Shogun.
To auto-fill a selected marker:
The following procedure for rigid gap-filling is semi-automated, in that you choose a marker for the fill:
To auto-fill selected markers or all markers:
In addition to the semi-automated procedure described above, you can also automatically fill all gaps on either all markers, or only those currently selected. To do this:
Note After running automated gap-filling, if Shogun did not find a set of rigid markers based on the settings, you may find that not all gaps are filled. You can either fill the remaining gaps manually, or you can try changing the settings, specifically by increasing Max Deviation from the default. |
You can run automated gap-filling multiple times to achieve the required results, in particular when:
You fill gaps using the Marker Editing panel, normally in conjunction with the Data Health view and/or a Graph view. The Marker Editing panel contains all the tools necessary to fill gaps, alter trajectory keys and filter your data.
For example, you might first notice a gap from the display on the time bar Issues map, then note which marker is affected in the 3D Scene view:
To open a Data Health view and a Graph view, as well as a 3D Scene view, split the screen by clicking the Three Views Split Left button at the top of the Shogun Post window and change the views in the new panes.
If the fill does not give an appropriate result, you can click Undo on the quick access toolbar , and try other gap-filling options in the Marker Editing panel (see Options for gap filling).
The appropriate option to use depends on the type of gap that you want to fill.
|
For non-linear motion, for example, where rotational movement is involved, as interpolation does not account for this kind of motion, a different approach is needed. If a missing marker is part of set of markers that are rigid (ie, remain in the same relation to each other, for example, a pelvis), you can use three or more markers in the rigid object (three in addition to the marker that has the gap is recommended) to help fill in the data for the missing marker.
Other rigid objects you can use in default marker set include hands, forearm, upper arm, shoulders, thorax, and head.
In cases where the motion is non-linear, but a rigid fill is not possible due to all the related markers being absent, you can use the Fill Using Constraints option. This uses the labeling or solving skeleton to produce the fill. It requires a skeleton be present, the skeleton to be constrained by markers, and enough markers to have data that the solve is fairly good. The marker being filled must be constrained to the skeleton because it is the constraint offset that is used to determine where the marker should be during the fill.
Before using this type of fill, check that the bones and missing markers (by default displayed in red in the 3D Scene view), are in sensible locations.
Note that the previous steps for fixing data issues assume that your existing .mcp data is largely of acceptable quality. However, in some circumstances (for example when you are trying to produce better quality data), rather than persisting in trying to fix a problematic .mcp file, you may need to clear the scene and start from the .x2d file, or unlabel all the data first. In this case, do not just open the Processing panel and click Reconstruct or Label or run other Combined Processing operations as this will not fix problems with the underlying data.
To remove all unlabeled data and clear existing labels and solves, at the top of the Processing panel, select the Reset Scene check box. You can then run Reconstruct, etc. Note that you can't undo the reset.
To remove existing labels from the current file, on the Labeling tab of the Processing panel, select Clear Existing Labels and then run Labeling as required.
To remove occlusion fixing from your data, in the Marker Editing panel, expand the Restore section and select the required option.
During the cleanup operation, each time you finish cleaning up a range, check its solve. To do this: