Skip to content
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

FastCV Extension code for Opencv #3824

Merged
merged 15 commits into from
Dec 2, 2024
Merged

Conversation

sssanjee-quic
Copy link
Contributor

@sssanjee-quic sssanjee-quic commented Nov 13, 2024

Depends on opencv/opencv#26316

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 Apache 2 License.
  • To the best of my knowledge, the proposed patch is not based on a code under GPL or another license that is incompatible with OpenCV
  • The PR is proposed to the proper branch
  • There is a reference to the 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

sssanjee-quic and others added 13 commits October 16, 2024 17:55
Change-Id: I721b810181dd9127221b6e2182d7aad5ac679b68
cleanup and added make rules to download the
fastcv bins from the 3rdparty repo

Change-Id: I9a9db68a310263658ec93ea299ea37860d07c507
- Reused FastCV search and variables from main OpenCV
- Reorganized headers in OpenCV style to make them compatible with bindings generator
- Disabled bindings for some functions as they are not generated automatically
- Fixed build
@asmorkalov asmorkalov self-requested a review November 19, 2024 07:41
Comment on lines +13 to +27
{
cv::Size size = get<0>(GetParam());
int d = get<1>(GetParam());
double sigmaColor = get<2>(GetParam());
double sigmaSpace = sigmaColor;

RNG& rng = cv::theRNG();
Mat src(size, CV_8UC1);
cvtest::randUni(rng, src, Scalar::all(0), Scalar::all(256));

cv::Mat dst;

cv::fastcv::bilateralFilter(src, dst, d, sigmaColor, sigmaSpace);

EXPECT_FALSE(dst.empty());
Copy link
Contributor

Choose a reason for hiding this comment

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

There is some indentation issue.

@asmorkalov asmorkalov merged commit 2c7591c into opencv:4.x Dec 2, 2024
10 of 11 checks passed
@asmorkalov asmorkalov self-assigned this Dec 2, 2024
@opencv-alalek
Copy link

This PR merge causes several documentation warnings:

/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv.hpp:30: warning: unbalanced grouping commands
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:19: warning: argument 'src' of command @param is not found in the argument list of cv::fastcv::resizeDownBy2(cv::InputArray _src, cv::OutputArray _dst)
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:19: warning: argument 'dst' of command @param is not found in the argument list of cv::fastcv::resizeDownBy2(cv::InputArray _src, cv::OutputArray _dst)
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:19: warning: The following parameters of cv::fastcv::resizeDownBy2(cv::InputArray _src, cv::OutputArray _dst) are not documented:
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:26: warning: argument 'src' of command @param is not found in the argument list of cv::fastcv::resizeDownBy4(cv::InputArray _src, cv::OutputArray _dst)
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:26: warning: argument 'dst' of command @param is not found in the argument list of cv::fastcv::resizeDownBy4(cv::InputArray _src, cv::OutputArray _dst)
/build/precommit_docs/4.x/opencv_contrib/modules/fastcv/include/opencv2/fastcv/scale.hpp:26: warning: The following parameters of cv::fastcv::resizeDownBy4(cv::InputArray _src, cv::OutputArray _dst) are not documented:

@opencv-alalek
Copy link

Problem is clearly visible on CI - stop merging against RED CI !

http://pullrequest.opencv.org/buildbot/builders/precommit-contrib_docs/builds/101305

@opencv-alalek
Copy link

If you don't use "legacy CI" - why we still don't have any GitHub Actions documentation builder for opencv_contrib repo?

@asmorkalov
Copy link
Contributor

Addressed in #3839

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.

4 participants