Skip to content
Snippets Groups Projects
Commit 238e49b8 authored by even's avatar even
Browse files

All segments on black background

parent 268e270c
No related branches found
No related tags found
No related merge requests found
...@@ -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 ();
......
...@@ -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;
......
...@@ -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 \\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment