mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-08-06 10:18:42 +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
|
padding: 4
|
||||||
implicitWidth: 350
|
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 {
|
RowLayout {
|
||||||
Label {
|
Label {
|
||||||
text: "Feature Display Mode:"
|
text: "Feature Display Mode:"
|
||||||
|
@ -112,25 +131,6 @@ FloatingPane {
|
||||||
onClicked: root.featuresViewer.display3dTracks = display3dTracksCB.checked
|
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 {
|
RowLayout {
|
||||||
Label {
|
Label {
|
||||||
text: "Time Window:"
|
text: "Time Window:"
|
||||||
|
|
|
@ -23,16 +23,16 @@ Repeater {
|
||||||
readonly property var trackDisplayModes: ['Lines Only', 'Current Matches', 'All Matches']
|
readonly property var trackDisplayModes: ['Lines Only', 'Current Matches', 'All Matches']
|
||||||
/// Current track display mode index
|
/// Current track display mode index
|
||||||
property int trackDisplayMode: 1
|
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
|
/// Display 3d tracks
|
||||||
property bool display3dTracks: false
|
property bool display3dTracks: false
|
||||||
/// Display only contiguous tracks
|
/// Display only contiguous tracks
|
||||||
property bool trackContiguousFilter: true
|
property bool trackContiguousFilter: true
|
||||||
/// Display only tracks with at least one inlier
|
/// Display only tracks with at least one inlier
|
||||||
property bool trackInliersFilter: false
|
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
|
/// 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
|
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
|
property int colorOffset: 0
|
||||||
featureDisplayMode: root.featureDisplayMode
|
featureDisplayMode: root.featureDisplayMode
|
||||||
trackDisplayMode: root.trackDisplayMode
|
trackDisplayMode: root.trackDisplayMode
|
||||||
|
featureMinScaleFilter: root.featureMinScaleFilter
|
||||||
|
featureMaxScaleFilter: root.featureMaxScaleFilter
|
||||||
display3dTracks: root.display3dTracks
|
display3dTracks: root.display3dTracks
|
||||||
trackContiguousFilter: root.trackContiguousFilter
|
trackContiguousFilter: root.trackContiguousFilter
|
||||||
trackInliersFilter: root.trackInliersFilter
|
trackInliersFilter: root.trackInliersFilter
|
||||||
trackMinFeatureScaleFilter: root.trackMinFeatureScaleFilter
|
|
||||||
trackMaxFeatureScaleFilter: root.trackMaxFeatureScaleFilter
|
|
||||||
featureColor: root.colors[colorIndex]
|
featureColor: root.colors[colorIndex]
|
||||||
matchColor: Colors.orange
|
matchColor: Colors.orange
|
||||||
landmarkColor: Colors.red
|
landmarkColor: Colors.red
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue