Skip to content

Use"moms"replace "contourArea"#17635

Merged
opencv-pushbot merged 1 commit intoopencv:3.4from
jsxyhelu:3.4
Jul 10, 2020
Merged

Use"moms"replace "contourArea"#17635
opencv-pushbot merged 1 commit intoopencv:3.4from
jsxyhelu:3.4

Conversation

@jsxyhelu
Copy link
Copy Markdown
Contributor

@jsxyhelu jsxyhelu commented Jun 23, 2020

double area = moms.m00;
is same as
double area = contourArea(contours[contourIdx]);
Not to mention
"moms" already calculated here,"contourArea" should not apply

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

@alalek
Copy link
Copy Markdown
Member

alalek commented Jun 25, 2020

Merge pull request

Please remove unnecessary commits from the PR.

Use“ moms”

Please remove non-ASCII symbols (quotes) from the commit message.

@jsxyhelu jsxyhelu changed the title Use“ moms” replace "contourArea" Use"moms"replace "contourArea" Jun 26, 2020
double area = moms.m00;
is same as
double area = contourArea(contours[contourIdx]);
Not to mention
"moms" already calculated here,"contourArea" should not apply
@opencv-pushbot opencv-pushbot merged commit e18df87 into opencv:3.4 Jul 10, 2020
@alalek alalek mentioned this pull request Jul 13, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants