Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
2019 FBSD
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Kerautret Bertrand
2019 FBSD
Commits
238e49b8
Commit
238e49b8
authored
6 years ago
by
even
Browse files
Options
Downloads
Patches
Plain Diff
All segments on black background
parent
268e270c
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
Code/Seg/BSTools/bsdetectionwidget.cpp
+9
-1
9 additions, 1 deletion
Code/Seg/BSTools/bsdetectionwidget.cpp
Code/Seg/BSTools/bsdetectionwidget.h
+2
-0
2 additions, 0 deletions
Code/Seg/BSTools/bsdetectionwidget.h
Methode/ctrl.tex
+1
-0
1 addition, 0 deletions
Methode/ctrl.tex
with
12 additions
and
1 deletion
Code/Seg/BSTools/bsdetectionwidget.cpp
+
9
−
1
View file @
238e49b8
...
@@ -34,6 +34,7 @@ BSDetectionWidget::BSDetectionWidget (QWidget *parent)
...
@@ -34,6 +34,7 @@ BSDetectionWidget::BSDetectionWidget (QWidget *parent)
alternate
=
0
;
alternate
=
0
;
verbose
=
false
;
verbose
=
false
;
capture
=
false
;
capture
=
false
;
paintItBlack
=
false
;
exam
=
-
1
;
exam
=
-
1
;
}
}
...
@@ -289,7 +290,12 @@ void BSDetectionWidget::keyPressEvent (QKeyEvent *event)
...
@@ -289,7 +290,12 @@ void BSDetectionWidget::keyPressEvent (QKeyEvent *event)
cout
<<
"Multi-selection "
cout
<<
"Multi-selection "
<<
(
detector
.
isMultiSelection
()
?
"on"
:
"off"
)
<<
endl
;
<<
(
detector
.
isMultiSelection
()
?
"on"
:
"off"
)
<<
endl
;
}
}
else
extractAll
();
else
{
if
(
event
->
modifiers
()
&
Qt
::
ControlModifier
)
paintItBlack
=
!
paintItBlack
;
extractAll
();
}
break
;
break
;
case
Qt
::
Key_L
:
// Next multi-selected segment
case
Qt
::
Key_L
:
// Next multi-selected segment
...
@@ -621,6 +627,8 @@ void BSDetectionWidget::extractAll ()
...
@@ -621,6 +627,8 @@ void BSDetectionWidget::extractAll ()
if
(
!
formerMultiMode
)
detector
.
switchMultiSelection
();
if
(
!
formerMultiMode
)
detector
.
switchMultiSelection
();
augmentedImage
=
loadedImage
;
augmentedImage
=
loadedImage
;
QPainter
painter
(
&
augmentedImage
);
QPainter
painter
(
&
augmentedImage
);
if
(
paintItBlack
)
painter
.
fillRect
(
0
,
0
,
width
,
height
,
QBrush
(
Qt
::
black
));
paintItBlack
=
false
;
detector
.
detectAll
();
detector
.
detectAll
();
...
...
This diff is collapsed.
Click to expand it.
Code/Seg/BSTools/bsdetectionwidget.h
+
2
−
0
View file @
238e49b8
...
@@ -164,6 +164,8 @@ private:
...
@@ -164,6 +164,8 @@ private:
bool
verbose
;
bool
verbose
;
/** Flag indicating whether extraction result should be captured. */
/** Flag indicating whether extraction result should be captured. */
bool
capture
;
bool
capture
;
/** Flag indicating whether no background should be displayed. */
bool
paintItBlack
;
/** Activation of alternate comparative tests (F8). */
/** Activation of alternate comparative tests (F8). */
int
alternate
;
int
alternate
;
...
...
This diff is collapsed.
Click to expand it.
Methode/ctrl.tex
+
1
−
0
View file @
238e49b8
...
@@ -35,6 +35,7 @@ q && Retour d'absence (1 / longueur absence) \\
...
@@ -35,6 +35,7 @@ q && Retour d'absence (1 / longueur absence) \\
Ctrl-c/v/z
&&
Enregistre / Affiche / Supprime les segments
\\
Ctrl-c/v/z
&&
Enregistre / Affiche / Supprime les segments
\\
M
&&
Commute la multi-d
\'
etection
\\
M
&&
Commute la multi-d
\'
etection
\\
m
&&
D
\'
etection exhaustive de tous les segments
\\
m
&&
D
\'
etection exhaustive de tous les segments
\\
Ctrl-m
&&
D
\'
etection exhaustive de tous les segments sur fond noir
\\
l
&&
Examine le segment suivant dans une multi-d
\'
etection
\\
l
&&
Examine le segment suivant dans une multi-d
\'
etection
\\
j
&&
Commute la d
\'
etection pr
\'
eliminaire
\\
j
&&
Commute la d
\'
etection pr
\'
eliminaire
\\
t
&&
Commute l'amincissement progressif
\\
t
&&
Commute l'amincissement progressif
\\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment