Skip to content

Simplified generateWindowName #2610

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Nov 7, 2020

Conversation

EricFlorin
Copy link
Contributor

@EricFlorin EricFlorin commented Jul 21, 2020

Fixes opencv/opencv#10784

Removed a few lines which prevented "Viz - " to be prepended to the names "Viz" and "", as pointed out in the original issue.

Since this issue is 2 years old, I am not sure if it was for an older version of opencv or more recent versions. I believe the 3.4 version of opencv in opencv/opencv may still have the error, since viz is one of modules packaged with 3.4, but I have not checked it yet.

Pull Request Readiness Checklist

See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request

  • I agree to contribute to the project under OpenCV (BSD) License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or other license that is incompatible with OpenCV
  • The PR is proposed to proper branch
  • There is reference to original bug report and related work
  • There is accuracy test, performance test and test data in opencv_extra repository, if applicable
    Patch to opencv_extra has the same branch name.
  • The feature is well documented and sample code can be built with the project CMake

@EricFlorin EricFlorin force-pushed the VizWindowNamePrepend_Contrib branch from 5d0eb21 to 0a3b1af Compare July 21, 2020 17:48
I removed lines of code within cv::viz::VizStorage::generateWindowName in an attempt to have "Viz - " prepended to window name automatically.
@EricFlorin EricFlorin force-pushed the VizWindowNamePrepend_Contrib branch from 0a3b1af to 3705bb9 Compare July 22, 2020 04:22
@alalek
Copy link
Member

alalek commented Oct 22, 2020

@EricFlorin Thank you for contribution!

I believe we should clarify documentation instead according to issue's description.

@EricFlorin
Copy link
Contributor Author

Thanks for the review @alalek! I will revert the changes I made and edit the documentation. Give me two to three days because it's been a busy week this week, but I will get it done.

Edited the Viz "getWindowByName" documentation so it reflects the actual behaviour of getWindowByName. More specifically, that "Viz - " is not prefixed automatically to the window name given by the user if they haven't prefixed "Viz - " already.
To restart the buildbot
Copy link
Member

@alalek alalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for contribution 👍

@alalek alalek merged commit ad75661 into opencv:master Nov 7, 2020
@alalek alalek mentioned this pull request Nov 27, 2020
@EricFlorin EricFlorin deleted the VizWindowNamePrepend_Contrib branch March 4, 2023 22:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: documentation Documentation fix or update, does not affect code category: viz
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incorrect documentation for cv::viz::getWindowByName
2 participants