From bed123774834bc27ca6d59d4827e5de6485d1685 Mon Sep 17 00:00:00 2001 From: Alan Morris Date: Mon, 20 Nov 2023 19:42:41 -0700 Subject: [PATCH] Scalars only PCA modes --- Studio/Analysis/AnalysisTool.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Studio/Analysis/AnalysisTool.cpp b/Studio/Analysis/AnalysisTool.cpp index e01566c9d3..281415af1e 100644 --- a/Studio/Analysis/AnalysisTool.cpp +++ b/Studio/Analysis/AnalysisTool.cpp @@ -501,6 +501,9 @@ bool AnalysisTool::compute_stats() { particles = shape->get_global_correspondence_points(); } else if (pca_scalar_only_mode()) { stats_.set_num_values_per_particle(1); + shape->get_reconstructed_meshes(true); + std::string target_feature = ui_->pca_scalar_combo->currentText().toStdString(); + shape->load_feature(DisplayMode::Reconstructed, target_feature); particles = shape->get_point_features(ui_->pca_scalar_combo->currentText().toStdString()); } else { stats_.set_num_values_per_particle(4); @@ -696,7 +699,6 @@ Particles AnalysisTool::get_shape_points(int mode, double value) { positions = extract_shape_only(temp_shape_); computed_scalars_ = extract_scalar_only(temp_shape_); } else if (pca_scalar_only_mode()) { - SW_LOG("Scalar only mode not implemented yet"); computed_scalars_ = temp_shape_; positions = construct_mean_shape(); }