Skip to content

Commit 5ef5d1b

Browse files
committed
Add getMean to Python PCA
1 parent 6ba6a2f commit 5ef5d1b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Libs/Python/ShapeworksPython.cpp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,7 @@ PYBIND11_MODULE(shapeworks_py, m) {
559559
[](Image& image, std::vector<double>& pt) -> decltype(auto) {
560560
return image.evaluate(Point({pt[0], pt[1], pt[2]}));
561561
},
562-
"evaluate the image at any given point in space", "pt"_a)
563-
;
562+
"evaluate the image at any given point in space", "pt"_a);
564563

565564
// PhysicalRegion
566565
py::class_<PhysicalRegion>(m, "PhysicalRegion")
@@ -1309,9 +1308,10 @@ PYBIND11_MODULE(shapeworks_py, m) {
13091308
.def("percentVarByMode", &ParticleShapeStatistics::get_percent_variance_by_mode,
13101309
"return the variance accounted for by the principal components")
13111310

1312-
.def("projectNewSample", &ParticleShapeStatistics::project_new_sample,
1313-
"project a new sample into the PCA space", "newSample"_a)
1314-
;
1311+
.def("projectNewSample", &ParticleShapeStatistics::project_new_sample, "project a new sample into the PCA space",
1312+
"newSample"_a)
1313+
1314+
.def("getMean", &ParticleShapeStatistics::get_mean, "returns the mean shape particles");
13151315

13161316
define_python_analyze(m);
13171317
define_python_groom(m);

0 commit comments

Comments
 (0)