Repository navigation
Mser sample improvments - #12032
Merged
Merged
Mser sample improvments#12032
Conversation
Wrong number of colors used to generate the synthetic images
alalek
reviewed
Jul 21, 2018
alalek
left a comment
Member
There was a problem hiding this comment.
Thank you for contribution!
Please take a look on comments below.
|
|
||
| inf = static_cast<const ostringstream&>(ostringstream() << pAct.delta).str(); | ||
| inf = dynamic_cast<const ostringstream&>(ostringstream() << pAct.delta).str(); | ||
| s += " del. [" + inf + "]"; |
Member
There was a problem hiding this comment.
As you touching this code, please make it more readable:
- single
ostringstream ss;object in the beginning of function. - no
Stringobjects - no
s +=statements - use
ss << value << "text";statements only - in the end:
return ss.str()
Paul92
force-pushed
the
mser-sample-improvments
branch
from
July 22, 2018 08:28
7d30398 to
3b71586
Compare
Merged
AhiyaHiya
pushed a commit
to AhiyaHiya/opencv
that referenced
this pull request
Aug 1, 2018
…master * master: (1187 commits) converted split() & merge() to wide univ intrinsics (opencv#12044) More issues found by static analysis objdetect(qr): update test code dnn: update tests for OpenVINO models ts: add findDataDirectory() function Do not copy cv_cpu_helper.h to parent if OpenCV is a submodule Add a sample which tests OpenVINO models Fixed several issues found by static analysis tools Merge pull request opencv#12032 from Paul92:mser-sample-improvments use struct member width_set/height_set to replace static width/height. dnn(ocl): don't use getUMat() for long live objects fix build error on Visual Studio 2013 * replace binary literal prefix to hexadecimal literal prefix dnn, IE backend: updated to match new interface videoio: add routines to query information about backends API Run entire SSDs from TensorFlow using Intel's Inference Engine uint8 inputs for deep learning networks ts: fix PERF_TEST() macro to allow test_case name reusing core(test): remove verbose messages Enable debug assertions for static analysis builds AVI container: verbose error messages ...
SavyaSanchi-Sharma
pushed a commit
to SavyaSanchi-Sharma/opencv
that referenced
this pull request
Jul 30, 2026
Mser sample improvments (opencv#12032) * Fixed bug in detect_mser sample Wrong number of colors used to generate the synthetic images * Formatting improvements * Using safer casts * Improved readability of legend generation * Various readability fixes in detect_mser sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pullrequest changes
Hi! Found a small issue in detect_mser.cpp example, with 2 arrays missing one element (see
#01ad0f0). I did also do some formatting and safety improvements.