mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-03 00:38:41 +02:00
[ui] FeaturesViewer: Add feature scale filter (for all display modes)
This commit is contained in:
parent
4d1139df1f
commit
f86202f1d8
2 changed files with 25 additions and 25 deletions
|
@ -38,6 +38,25 @@ FloatingPane {
|
|||
padding: 4
|
||||
implicitWidth: 350
|
||||
|
||||
RowLayout {
|
||||
Label {
|
||||
text: "Feature Scale Filter:"
|
||||
}
|
||||
RangeSlider {
|
||||
id: featureScaleFilterRS
|
||||
ToolTip.text: "Filters features according to their scale (or filters tracks according to their average feature scale)."
|
||||
ToolTip.visible: hovered
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignRight
|
||||
from: 0
|
||||
to: 1
|
||||
first.value: root.featuresViewer.featureMinScaleFilter
|
||||
first.onMoved: { root.featuresViewer.featureMinScaleFilter = first.value; }
|
||||
second.value: root.featuresViewer.featureMaxScaleFilter
|
||||
second.onMoved: { root.featuresViewer.featureMaxScaleFilter = second.value; }
|
||||
stepSize: 0.01
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
Label {
|
||||
text: "Feature Display Mode:"
|
||||
|
@ -112,25 +131,6 @@ FloatingPane {
|
|||
onClicked: root.featuresViewer.display3dTracks = display3dTracksCB.checked
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
Label {
|
||||
text: "Track Feature Scale Filter:"
|
||||
}
|
||||
RangeSlider {
|
||||
id: trackFeatureScaleFilterRS
|
||||
ToolTip.text: "Filters tracks according to their feature scale score (average feature scale)."
|
||||
ToolTip.visible: hovered
|
||||
Layout.fillHeight: true
|
||||
Layout.alignment: Qt.AlignRight
|
||||
from: 0
|
||||
to: 1
|
||||
first.value: root.featuresViewer.trackMinFeatureScaleFilter
|
||||
first.onMoved: { root.featuresViewer.trackMinFeatureScaleFilter = first.value; }
|
||||
second.value: root.featuresViewer.trackMaxFeatureScaleFilter
|
||||
second.onMoved: { root.featuresViewer.trackMaxFeatureScaleFilter = second.value; }
|
||||
stepSize: 0.01
|
||||
}
|
||||
}
|
||||
RowLayout {
|
||||
Label {
|
||||
text: "Time Window:"
|
||||
|
|
|
@ -23,16 +23,16 @@ Repeater {
|
|||
readonly property var trackDisplayModes: ['Lines Only', 'Current Matches', 'All Matches']
|
||||
/// Current track display mode index
|
||||
property int trackDisplayMode: 1
|
||||
// Minimum feature scale score to display
|
||||
property real featureMinScaleFilter: 0
|
||||
// Maximum feature scale score to display
|
||||
property real featureMaxScaleFilter: 1
|
||||
/// Display 3d tracks
|
||||
property bool display3dTracks: false
|
||||
/// Display only contiguous tracks
|
||||
property bool trackContiguousFilter: true
|
||||
/// Display only tracks with at least one inlier
|
||||
property bool trackInliersFilter: false
|
||||
// Minimum track feature scale score to display
|
||||
property real trackMinFeatureScaleFilter: 0
|
||||
// Maximum track feature scale score to display
|
||||
property real trackMaxFeatureScaleFilter: 1
|
||||
/// The list of colors used for displaying several describers
|
||||
property var colors: [Colors.blue, Colors.green, Colors.yellow, Colors.cyan, Colors.pink, Colors.lime] //, Colors.orange, Colors.red
|
||||
|
||||
|
@ -44,11 +44,11 @@ Repeater {
|
|||
property int colorOffset: 0
|
||||
featureDisplayMode: root.featureDisplayMode
|
||||
trackDisplayMode: root.trackDisplayMode
|
||||
featureMinScaleFilter: root.featureMinScaleFilter
|
||||
featureMaxScaleFilter: root.featureMaxScaleFilter
|
||||
display3dTracks: root.display3dTracks
|
||||
trackContiguousFilter: root.trackContiguousFilter
|
||||
trackInliersFilter: root.trackInliersFilter
|
||||
trackMinFeatureScaleFilter: root.trackMinFeatureScaleFilter
|
||||
trackMaxFeatureScaleFilter: root.trackMaxFeatureScaleFilter
|
||||
featureColor: root.colors[colorIndex]
|
||||
matchColor: Colors.orange
|
||||
landmarkColor: Colors.red
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue