@@ -9562,6 +9562,20 @@ gm_context_new(struct gm_logger *logger, char **err)
9562
9562
prop.bool_state .ptr = &ctx->fast_clustering ;
9563
9563
stage.properties .push_back (prop);
9564
9564
9565
+ stage.properties_state .n_properties = stage.properties .size ();
9566
+ stage.properties_state .properties = stage.properties .data ();
9567
+ pthread_mutex_init (&stage.properties_state .lock , NULL );
9568
+ }
9569
+
9570
+ {
9571
+ enum tracking_stage stage_id = TRACKING_STAGE_REFINE_SKELETON;
9572
+ struct gm_pipeline_stage &stage = ctx->stages [stage_id];
9573
+
9574
+ stage.stage_id = stage_id;
9575
+ stage.name = " refine_skeleton" ;
9576
+ stage.desc = " Try to verify the best inferred skeleton joints "
9577
+ " have been chosen" ;
9578
+
9565
9579
ctx->joint_refinement = true ;
9566
9580
prop = gm_ui_property ();
9567
9581
prop.object = ctx;
@@ -9571,6 +9585,7 @@ gm_context_new(struct gm_logger *logger, char **err)
9571
9585
prop.type = GM_PROPERTY_BOOL;
9572
9586
prop.bool_state .ptr = &ctx->joint_refinement ;
9573
9587
stage.properties .push_back (prop);
9588
+ stage.toggle_property = stage.properties .size () - 1 ;
9574
9589
9575
9590
ctx->max_joint_refinement_delta = 0 .2f ;
9576
9591
prop = gm_ui_property ();
@@ -9590,13 +9605,12 @@ gm_context_new(struct gm_logger *logger, char **err)
9590
9605
}
9591
9606
9592
9607
{
9593
- enum tracking_stage stage_id = TRACKING_STAGE_REFINE_SKELETON ;
9608
+ enum tracking_stage stage_id = TRACKING_STAGE_SANITIZE_SKELETON ;
9594
9609
struct gm_pipeline_stage &stage = ctx->stages [stage_id];
9595
9610
9596
9611
stage.stage_id = stage_id;
9597
- stage.name = " refine_skeleton" ;
9598
- stage.desc = " Try to verify the best inferred skeleton joints "
9599
- " have been chosen" ;
9612
+ stage.name = " sanitize_skeleton" ;
9613
+ stage.desc = " Try and clean up issues with the derived skeleton" ;
9600
9614
stage.toggle_property = -1 ;
9601
9615
9602
9616
ctx->sanitisation_window = 1 .f ;
@@ -9673,20 +9687,6 @@ gm_context_new(struct gm_logger *logger, char **err)
9673
9687
prop.float_state .max = 1500 .f ;
9674
9688
stage.properties .push_back (prop);
9675
9689
9676
- stage.properties_state .n_properties = stage.properties .size ();
9677
- stage.properties_state .properties = stage.properties .data ();
9678
- pthread_mutex_init (&stage.properties_state .lock , NULL );
9679
- }
9680
-
9681
- {
9682
- enum tracking_stage stage_id = TRACKING_STAGE_SANITIZE_SKELETON;
9683
- struct gm_pipeline_stage &stage = ctx->stages [stage_id];
9684
-
9685
- stage.stage_id = stage_id;
9686
- stage.name = " sanitize_skeleton" ;
9687
- stage.desc = " Try and clean up issues with the derived skeleton" ;
9688
- stage.toggle_property = -1 ;
9689
-
9690
9690
ctx->joint_velocity_threshold = 1 .5f ;
9691
9691
prop = gm_ui_property ();
9692
9692
prop.object = ctx;
0 commit comments