mirror of
https://github.com/zebrajr/opencv.git
synced 2025-12-06 00:19:46 +01:00
2025-10-14T05:53:31.5387050Z C:\GHA-OCV-1\_work\ci-gha-workflow\ci-gha-workflow\opencv\modules\imgcodecs\src\bitstrm.cpp(156,57): warning C4244: 'argument': conversion from 'int64_t' to 'ptrdiff_t', possible loss of data [C:\GHA-OCV-1\_work\ci-gha-workflow\ci-gha-workflow\build\modules\imgcodecs\opencv_imgcodecs.vcxproj] ### Pull Request Readiness Checklist Optional Known Foreground Mask for Background Subtractors #27810 See details at https://github.com/opencv/opencv/wiki/How_to_contribute#making-a-good-pull-request - [x] I agree to contribute to the project under Apache 2 License. - [x] 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 - [x] The PR is proposed to the proper branch - [x] There is a reference to the original bug report and related work - [x] There is accuracy test, performance test and test data in opencv_extra repository, if applicable Patch to opencv_extra has the same branch name. - [x] The feature is well documented and sample code can be built with the project CMake ### Description This adds an optional foreground input mask parameter to the MOG2 and KNN background subtractors, in line with issue https://github.com/opencv/opencv/issues/26476 4 tests are added under test_bgfg2.cpp: 2 for each subtractor type (1 with shadow detection and 1 without) A demo shows the feature with only 3 parameters and with a 4th optional foreground mask for both core subtractor types. Note: To patch contrib inheritance of the background subtraction class, empty apply method which throws a not implemented error is added to contrib subclasses. This is done to keep the overloaded apply function as pure virtual. Contrib PR to be made and linked shortly. Contrib Repo Paired Pull Request: https://github.com/opencv/opencv_contrib/pull/4017 |
||
|---|---|---|
| .. | ||
| tutorial_code | ||
| _coverage.py | ||
| _doc.py | ||
| _run_winpack_demo.cmd | ||
| .gitignore | ||
| aruco_detect_board_charuco.py | ||
| asift.py | ||
| audio_spectrogram.py | ||
| background_subtractor_mask.py | ||
| browse.py | ||
| calibrate.py | ||
| camera_calibration_show_extrinsics.py | ||
| camshift.py | ||
| CMakeLists.txt | ||
| coherence.py | ||
| color_histogram.py | ||
| common.py | ||
| contours.py | ||
| deconvolution.py | ||
| demo.py | ||
| dft.py | ||
| digits_adjust.py | ||
| digits_video.py | ||
| digits.py | ||
| dis_opt_flow.py | ||
| distrans.py | ||
| drawing.py | ||
| edge.py | ||
| essential_mat_reconstr.py | ||
| facedetect.py | ||
| feature_homography.py | ||
| find_obj.py | ||
| fitline.py | ||
| floodfill.py | ||
| gabor_threads.py | ||
| gaussian_mix.py | ||
| grabcut.py | ||
| hist.py | ||
| houghcircles.py | ||
| houghlines.py | ||
| inpaint.py | ||
| kalman.py | ||
| kmeans.py | ||
| laplace.py | ||
| lappyr.py | ||
| letter_recog.py | ||
| lk_homography.py | ||
| lk_track.py | ||
| logpolar.py | ||
| morphology.py | ||
| mosse.py | ||
| mouse_and_match.py | ||
| mser.py | ||
| opencv_version.py | ||
| opt_flow.py | ||
| peopledetect.py | ||
| plane_ar.py | ||
| plane_tracker.py | ||
| qrcode.py | ||
| squares.py | ||
| stereo_match.py | ||
| stitching_detailed.py | ||
| stitching.py | ||
| text_skewness_correction.py | ||
| texture_flow.py | ||
| tracker.py | ||
| tst_scene_render.py | ||
| turing.py | ||
| video_threaded.py | ||
| video_v4l2.py | ||
| video.py | ||
| videocapture_obsensor.py | ||
| watershed.py | ||