🧵 How to hand‐correct DeepLabCut 2D Splines - articulateinstruments/AAA-DeepLabCut-Resources GitHub Wiki
DeepLabCut (DLC) splines are freeform splines with no restriction in shape. They are referred to as 2D splines in AAA.
After you finish creating DLC splines, every ultrasound frame or video frame will have a spline keyframe with a unique spline. It is possible to manually edit these from the keyframe tab.
To select a single keyframe:
- Make sure the
spline tab is selected. Use the
buttons if it is not visible.
- Click on a time in the list on the left. The spline will then turn orange to indicate that it has been selected.
- The DLC_Tongue spline is controlled by 11 knots (control points) represented by ticks along the contour. Click near a tick and drag to move it around.
The Adjust 2D Spline tab offers controls to translate and rotate whole splines. This is not very useful for tongue or lip splines and more often applied to Fiducials. There is also a Snake algorithm. This is intended to iteratively adjust the selected 2D spline to fit to the nearest bright edge. This function is not recommended. Used sparingly (clicked a couple of times) it may move the spline closer to a bright edge but extended use will distort the spline shape.
The button reveals the parameters for adjusting the Snake algorithm behaviour. But this bright edge hunting algorithm is inferior to DeepLabCut and discouraged. The Track Ultrax button has been deactivated.