2020-06-26 04:39:14 -07:00
|
|
|
import Vue from 'vue'
|
|
|
|
|
|
2020-05-25 22:46:44 +03:00
|
|
|
export default {
|
|
|
|
|
state: {
|
|
|
|
|
exposure: 0,
|
|
|
|
|
brightness: 0,
|
|
|
|
|
gain: 0,
|
|
|
|
|
rotationMode: 0,
|
|
|
|
|
hue: [0, 15],
|
|
|
|
|
saturation: [0, 15],
|
|
|
|
|
value: [0, 25],
|
|
|
|
|
erode: false,
|
|
|
|
|
dilate: false,
|
|
|
|
|
area: [0, 12],
|
|
|
|
|
ratio: [0, 12],
|
2020-07-17 20:05:03 -07:00
|
|
|
fullness: [0, 12],
|
2020-05-25 22:46:44 +03:00
|
|
|
speckle: 5,
|
|
|
|
|
targetGrouping: 0,
|
|
|
|
|
targetIntersection: 0,
|
|
|
|
|
sortMode: 0,
|
|
|
|
|
multiple: false,
|
|
|
|
|
isBinary: 0,
|
|
|
|
|
calibrationMode: 0,
|
|
|
|
|
videoModeIndex: 0,
|
|
|
|
|
streamDivisor: 0,
|
|
|
|
|
is3D: false,
|
|
|
|
|
targetRegion: 0,
|
|
|
|
|
targetOrientation: 1
|
|
|
|
|
},
|
|
|
|
|
mutations: {
|
|
|
|
|
isBinary: (state, value) => {
|
|
|
|
|
state.isBinary = value
|
|
|
|
|
},
|
|
|
|
|
mutatePipeline: (state, {key, value}) => {
|
2020-06-26 04:39:14 -07:00
|
|
|
Vue.set(state, key, value)
|
2020-05-25 22:46:44 +03:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
},
|
|
|
|
|
actions: {},
|
|
|
|
|
getters: {
|
|
|
|
|
pipeline: state => {
|
|
|
|
|
return state
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
};
|