@@ -291,16 +291,13 @@ bool TestTransitionHistory::testIsTransitionToBlack(const double testDuration, R
291291 TransitionHistory history;
292292 std::vector<unsigned int > transitionIndices;
293293
294- Log::info () << " Testing steep gradient (255->0):" ;
295-
296294 for (unsigned int n = 1u ; n < pixelCount; ++n)
297295 {
298296 const bool isTransition = TransitionHistory::isTransitionToBlack (&pixels[n], history);
299297
300298 if (isTransition)
301299 {
302300 transitionIndices.push_back (n);
303- Log::info () << " Transition detected at index " << n << " (pixel value: " << int (pixels[n]) << " , delta: " << int (pixels[n]) - int (pixels[n - 1 ]) << " )" ;
304301 }
305302 }
306303
@@ -328,22 +325,16 @@ bool TestTransitionHistory::testIsTransitionToBlack(const double testDuration, R
328325 TransitionHistory history;
329326 std::vector<unsigned int > transitionIndices;
330327
331- Log::info () << " Testing gentle gradient (delta=-10 per pixel) where history matters:" ;
332- Log::info () << " Pixel values: " << int (pixels[0 ]) << " , " << int (pixels[1 ]) << " , " << int (pixels[2 ]) << " , " << int (pixels[3 ]) << " , " << int (pixels[4 ]) << " , ..." ;
333-
334328 for (unsigned int n = 1u ; n < pixelCount; ++n)
335329 {
336330 const bool isTransition = TransitionHistory::isTransitionToBlack (&pixels[n], history);
337331
338332 if (isTransition)
339333 {
340334 transitionIndices.push_back (n);
341- Log::info () << " Transition detected at index " << n << " (pixel value: " << int (pixels[n]) << " , delta: " << int (pixels[n]) - int (pixels[n - 1 ]) << " )" ;
342335 }
343336 }
344337
345- Log::info () << " Total transitions detected: " << transitionIndices.size ();
346-
347338 if (transitionIndices.empty ())
348339 {
349340 allSucceeded = false ;
@@ -473,16 +464,13 @@ bool TestTransitionHistory::testIsTransitionToWhite(const double testDuration, R
473464 TransitionHistory history;
474465 std::vector<unsigned int > transitionIndices;
475466
476- Log::info () << " Testing steep gradient (0->255):" ;
477-
478467 for (unsigned int n = 1u ; n < pixelCount; ++n)
479468 {
480469 const bool isTransition = TransitionHistory::isTransitionToWhite (&pixels[n], history);
481470
482471 if (isTransition)
483472 {
484473 transitionIndices.push_back (n);
485- Log::info () << " Transition detected at index " << n << " (pixel value: " << int (pixels[n]) << " , delta: " << int (pixels[n]) - int (pixels[n - 1 ]) << " )" ;
486474 }
487475 }
488476
@@ -510,22 +498,16 @@ bool TestTransitionHistory::testIsTransitionToWhite(const double testDuration, R
510498 TransitionHistory history;
511499 std::vector<unsigned int > transitionIndices;
512500
513- Log::info () << " Testing gentle gradient (delta=+10 per pixel) where history matters:" ;
514- Log::info () << " Pixel values: " << int (pixels[0 ]) << " , " << int (pixels[1 ]) << " , " << int (pixels[2 ]) << " , " << int (pixels[3 ]) << " , " << int (pixels[4 ]) << " , ..." ;
515-
516501 for (unsigned int n = 1u ; n < pixelCount; ++n)
517502 {
518503 const bool isTransition = TransitionHistory::isTransitionToWhite (&pixels[n], history);
519504
520505 if (isTransition)
521506 {
522507 transitionIndices.push_back (n);
523- Log::info () << " Transition detected at index " << n << " (pixel value: " << int (pixels[n]) << " , delta: " << int (pixels[n]) - int (pixels[n - 1 ]) << " )" ;
524508 }
525509 }
526510
527- Log::info () << " Total transitions detected: " << transitionIndices.size ();
528-
529511 if (transitionIndices.empty ())
530512 {
531513 allSucceeded = false ;
0 commit comments