Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Added Dashed Rectangle feature in Drawing.cpp#16880

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Closed
VisheshKhosla wants to merge3 commits intoopencv:masterfromVisheshKhosla:feature

Conversation

@VisheshKhosla
Copy link

@VisheshKhoslaVisheshKhosla commentedMar 22, 2020
edited
Loading

Pull Request Readiness Checklist

See details athttps://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

void dash_rectangle(InputOutputArray _img, Point pt1, Point pt2,    const Scalar& color, int thickness = 1,    int lineType = 8, int shift = 0,int gap=5) Where the gap is the distance between the dashes.
@VisheshKhoslaVisheshKhosla changed the titleFeatureAdded Dashed Rectangle feature in Drawing.cppMar 22, 2020
@VisheshKhosla
Copy link
Author

void dash_rectangle(InputOutputArray _img, Point pt1, Point pt2,
const Scalar& color, int thickness = 1,
int lineType = 8, int shift = 0,int gap=5)
Where the gap is the distance between the dashes.

@VisheshKhosla
Copy link
Author

It shows that docs have failed the merging process.Can i know more about this?

@alalek
Copy link
Member

docs have failed the merging process

This is not true. It is not merging failure.


know more about this

Yes, readhttps://github.com/opencv/opencv/wiki/How_to_contribute till the end.


Merge pull request #

These commits will not be accepted. Remove them.

}
voiddash_rectangle(InputOutputArray _img, Point pt1, Point pt2,
const Scalar& color,int thickness =1,
int lineType =8,int shift =0,int gap=5) {
Copy link
Member

Choose a reason for hiding this comment

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

line(_img, v1, v1, color, thickness, lineType =8, shift =0);
line(_img, v2, v2, color, thickness, lineType =8, shift =0);
line(_img, v3, v3, color, thickness, lineType =8, shift =0);
line(_img, v4, v4, color, thickness, lineType =8, shift =0);
Copy link
Member

Choose a reason for hiding this comment

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

Drawing points as lines is not a good idea due it's not convenient if this line has length or not. So nothing can be drawn as well. I would like to recommend to replace to filled rectangle

@asmorkalov
Copy link
Contributor

@VisheshKhosla do you plan to finish the PR in mean time?

@asmorkalovasmorkalov added pr: needs docsPlease update corresponding documentation pr: needs testNew functionality requires minimal tests set labelsApr 9, 2020
@VisheshKhosla
Copy link
Author

@VisheshKhosla do you plan to finish the PR in mean time?

Yes sure,i am really sorry for the delay.

@asmorkalov
Copy link
Contributor

@vpisarev What is your opinion?

@vpisarev
Copy link
Contributor

@VisheshKhosla, thank you for the contribution! I think, we need to carefully design and then implement this functionality with extended drawing primitives. Just adding functions one-by-one is not a good idea, that will result in a bloated and inconsistent API. Please, look at the following evolution proposal:https://github.com/opencv/opencv/wiki/OE-24.-Module-HighGUI. I've added there items about dashed figures. Let me close this PR for now, and you are welcome to the discussion thread about the evolution proposal (#11019). Someone needs to compose a detailed API proposal, then it should be discussed and then we should start working on the implementation.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@dkurtdkurtdkurt left review comments

@asmorkalovasmorkalovasmorkalov requested changes

Assignees

@vpisarevvpisarev

Labels

category: imgprocpr: Discussion Requiredpr: needs docsPlease update corresponding documentationpr: needs testNew functionality requires minimal tests set

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

5 participants

@VisheshKhosla@alalek@asmorkalov@vpisarev@dkurt

[8]ページ先頭

©2009-2025 Movatter.jp