-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #14 from uramakilab/feat/blink-filter
Feat/blink filter
- Loading branch information
Showing
7 changed files
with
256 additions
and
203 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
<template> | ||
<div> | ||
<Slider :value="leftEyeTreshold" :min="Number(3)" :max="Number(10)" :decimal="true" label="left eye treshold" | ||
@input="updateLeftTreshold" /> | ||
<Slider :value="rightEyeTreshold" :min="Number(3)" :max="Number(10)" :decimal="true" label="right eye treshold" | ||
@input="updateRightTreshold" /> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import Slider from "@/components/general/Slider.vue"; | ||
export default { | ||
components: { | ||
Slider, | ||
}, | ||
computed: { | ||
leftEyeTreshold() { | ||
return Number(this.$store.state.calibration.leftEyeTreshold) | ||
}, | ||
rightEyeTreshold() { | ||
return Number(this.$store.state.calibration.rightEyeTreshold) | ||
}, | ||
}, | ||
methods: { | ||
updateLeftTreshold(value) { | ||
this.$store.commit('setLeftTreshold', value); | ||
}, | ||
updateRightTreshold(value) { | ||
this.$store.commit('setRightTreshold', value); | ||
}, | ||
}, | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<template> | ||
<v-container> | ||
<v-col> | ||
<v-card outlined> | ||
<v-card-title> | ||
blink filter config: | ||
</v-card-title> | ||
<div class="custom-outline"> | ||
Control: | ||
<v-checkbox v-model="blinkFilter" label="Blink Filter" color="black"></v-checkbox> | ||
</div> | ||
<div v-if="blinkFilter" class="custom-outline"> | ||
<BlinkTreshold /> | ||
</div> | ||
|
||
</v-card> | ||
</v-col> | ||
</v-container> | ||
</template> | ||
|
||
<script> | ||
import BlinkTreshold from './BlinkTreshold.vue' | ||
export default { | ||
components: { | ||
BlinkTreshold, | ||
}, | ||
data() { | ||
return { | ||
blinkFilter: true | ||
} | ||
}, | ||
watch: { | ||
blinkFilter(value) { | ||
this.updateBlinkFilter(value) | ||
}, | ||
}, | ||
methods: { | ||
updateBlinkFilter(value) { | ||
this.$store.commit('setBlinkFilter', value) | ||
}, | ||
}, | ||
} | ||
</script> | ||
|
||
<style scoped> | ||
.custom-outline { | ||
border: 1px solid #000; | ||
padding: 10px; | ||
border-radius: 5px; | ||
margin: 10px; | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.