From 50fdfd8bce2fcc83de446bbb86394732ff267934 Mon Sep 17 00:00:00 2001 From: Matt Date: Mon, 28 Feb 2022 00:44:22 -0500 Subject: [PATCH] Add outlier rejection (#432) Uses standard deviations from mean x/y location to reject outliers --- photon-client/src/store/index.js | 2 + .../src/views/PipelineViews/ContoursTab.vue | 41 +++++++++++- .../common/util/math/MathUtils.java | 58 ++++++++++++++-- .../vision/pipe/impl/FilterContoursPipe.java | 66 ++++++++++++++++++- .../vision/pipeline/ReflectivePipeline.java | 4 +- .../pipeline/ReflectivePipelineSettings.java | 3 + 6 files changed, 167 insertions(+), 7 deletions(-) diff --git a/photon-client/src/store/index.js b/photon-client/src/store/index.js index 714534c57..9a462a262 100644 --- a/photon-client/src/store/index.js +++ b/photon-client/src/store/index.js @@ -69,6 +69,8 @@ export default new Vuex.Store({ contourRatio: [0, 12], contourFullness: [0, 12], contourSpecklePercentage: 5, + contourFilterRangeX: 5, + contourFilterRangeY: 5, contourGroupingMode: 0, contourIntersection: 0, contourSortMode: 0, diff --git a/photon-client/src/views/PipelineViews/ContoursTab.vue b/photon-client/src/views/PipelineViews/ContoursTab.vue index c239e04ee..364bd6968 100644 --- a/photon-client/src/views/PipelineViews/ContoursTab.vue +++ b/photon-client/src/views/PipelineViews/ContoursTab.vue @@ -5,7 +5,7 @@ name="Area" min="0" max="100" - step="0.1" + step="0.01" @input="handlePipelineData('contourArea')" />