Commit Graph

43 Commits

Author SHA1 Message Date
Christos
8d9f0cb447 Merge pull request #30738 from cstamatopoulos/xfeat-reference-sampling (#30738 )
features: sample cv::XFeat maps like the reference XFeat
2026-11-11 12:57:40 +05:30
Alexander Smorkalov
9246f9256a Merge pull request #30601 from lazerg:fix/issue-30600-lightglue-empty-train
features: return no matches from LightGlueMatcher for empty train descriptors
2026-10-31 11:27:17 +03:00
Abhishek Gola
759ec96825 Merge pull request #30551 from CheesyWannabe/fix-xfeat-letterbox-inverse
features: fix cv::XFeat letterbox inverse mapping
2026-10-31 13:09:03 +05:30
lazerg
f3f6bf1a50 features: return no matches from LightGlueMatcher for empty train descriptors 2026-10-30 15:41:02 +05:00
Abhishek Gola
514825652c features: check XFeat bounds and mask at the keypoint's containing pixel
Signed-off-by: Abhishek Gola <abhishek.gola@bigvisionllc.com>
2026-10-30 13:22:56 +05:30
Abhishek Gola
1e5aa6d307 Merge pull request #30562 from CheesyWannabe/fix-lightglue-max-side-norm
features: add max-side keypoint normalization to LightGlueMatcher
2026-10-30 13:09:56 +05:30
CheesyWannabe
fa0133665f features: map XFeat keypoints back with cv::resize's pixel-centre convention
cv::resize samples destination pixel d at source position
(d + 0.5) * s - 0.5. Mapping keypoints back as (xp - pad) * s left them
short by 0.5 * (s - 1) image pixels per axis (about 0.28 px for 1000x901
into 640x640, 0.5 px at 2x downscale). Use the matching inverse, as
AKAZE and BRISK do for their octaves, and update the letterbox test's
expected mapping accordingly.
2026-10-30 13:24:41 +08:00
CheesyWannabe
9685cfc917 features: match XFeat's resize interpolation in letterbox test
#30131 made cv::XFeat letterbox with INTER_LINEAR_EXACT. The test's
hand-made letterbox still used INTER_LINEAR, so on current 5.x the two
blobs differed slightly and some keypoints moved by one network pixel
(1.56 px), failing the exact-mapping check. Use INTER_LINEAR_EXACT so the
network sees an identical blob again.
2026-10-29 01:23:43 +08:00
CheesyWannabe
950d4fe0ae features: use EXPECT_THROW for invalid LightGlue keypoint normalization
Replace the try/FAIL/catch block with EXPECT_THROW, still checking that
the error code is StsBadArg.
2026-10-28 19:27:46 +08:00
Alexander Smorkalov
21a2f2b8df Merge pull request #30131 from asmorkalov:as/blobFromImage_bitexact_flag
Added flag for bitexact resize in blobFromImage and overloads. - #30131

Current INTER_LINEAR resize allows small deviations up to rounding. It affects inference result for networks that produce coordinates (object detectors, features) and descriptors. The new option allow to get the same result independently on CPU arch and used HALs.

Companion PR for references update: https://github.com/opencv/opencv_extra/pull/1422

### Pull Request Readiness Checklist

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
- [ ] 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
2026-10-28 13:04:00 +03:00
CheesyWannabe
2001806ed2 features: add max-side keypoint normalization to LightGlueMatcher
LightGlueMatcher normalizes each axis by its own image dimension, while
the LightGlue reference (cvg/LightGlue normalize_keypoints, kornia)
shifts by half the image size and divides both axes by half the longer
side. The two only agree for square images, so models exported from
the reference forward without normalization (e.g. XFeat's LighterGlue)
see a stretched geometry on non-square images.

Add LightGlueNormalization with LG_NORM_MODEL (default, unchanged
per-axis mapping of the LightGlueType) and LG_NORM_MAX_SIDE (reference
mapping), selected with setKeypointNormalization() independently of the
model type and kept by clone(). Keypoints passed with an empty image
size are still used as given.

Fixes #30556
2026-10-28 10:51:37 +08:00
CheesyWannabe
fc66429549 features: fix cv::XFeat letterbox inverse mapping
Move the letterbox inverse test body into testXFeatLetterboxInverse()
and run it for 1000x901 (vertical pad) and 901x1000 (horizontal pad),
so the width part of the fix is exercised too.

Fixes #30548
2026-10-27 21:29:51 +08:00
CheesyWannabe
8bc29c85a6 features: fix cv::XFeat letterbox inverse mapping
XFeat letterboxes through blobFromImageWithParams(DNN_PMODE_LETTERBOX)
but re-derived the resized size with cvRound, while dnn truncates. When
the resized size had a fractional part >= 0.5, the pad offset was one
network pixel off. It also divided by the nominal factor instead of the
real per-axis ratio. Mirror dnn's truncation and map back with the exact
per-axis inverse, and add a regression test with a non-integral
letterbox (1000x901 into 640x640).

Fixes #30548
2026-10-27 17:16:46 +08:00
Abhishek Gola
c78333b802 Merge pull request #29392 from YangGuanyuhan/ai-disk-lightglue-pipeline
[GSOC] feat: Add DISK LightGlue matcher and fix DNN finalizeLayers state leak
2026-10-08 12:51:54 +05:30
Abhishek Gola
8073491846 features: tag DISK LightGlue regression test as memory-heavy
The test runs DISK plus LightGlue over 1024 keypoints and needs more
memory than the 32-bit Windows x86 build can hand out, so it died with
an OutOfMemoryError on a 512 MB allocation. Every other DNN-backed test
in the module already carries CV_TEST_TAG_MEMORY_2GB; this one was
missing it.
2026-10-07 13:01:40 +05:30
Abhishek Gola
019fe979b7 features: fix LightGlue test namespace guards and dedupe variant clone() 2026-10-05 13:55:45 +05:30
Yang Guanyuhan
fc07918eb2 features: keep LightGlue normalization internal 2026-09-17 20:34:09 +08:00
Vincent Rabaud
551dbcac54 Merge pull request #29948 from vrabaud:comma_initializer
Remove deprecated CommaInitializer API - #29948

This goes hand in hand with https://github.com/opencv/opencv_contrib/pull/4217

### Pull Request Readiness Checklist

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
- [ ] 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
2026-09-16 13:59:50 +03:00
Yang Guanyuhan
4dea9d6576 features: unify LightGlue model and normalization selection
Use LightGlueType for both model selection and keypoint normalization while retaining the public helper for cached coordinates. Restore the four-argument setPairInfo interface and reject unsupported model types.

Add coverage for normalization, input validation, equivalent pair-info entry points, cached coordinates, and supported in-memory model loading.
2026-09-15 00:06:23 +08:00
Yang Guanyuhan
cbdb91c237 features: use logger in DISK LightGlue test 2026-09-06 12:10:03 +08:00
Yang Guanyuhan
af8c72f022 features: flatten LightGlueMatcher::Type to namespace-scoped LightGlueType
Move the model-variant enum out of the class so it follows the same
namespace-scoped style as dnn::EngineType. Also relax the DISK LightGlue
test tolerance.
2026-09-06 12:10:03 +08:00
Yang Guanyuhan
30f950e2e4 features(test): relax DISK LightGlue regression with ±2 tolerance window
ONNX Runtime version differences in floating-point can shift match
indices. Replace exact-match assertions with ±2 tolerance on both
match count and per-match index comparison.
2026-09-06 12:10:03 +08:00
Yang Guanyuhan
d3249f7455 features: unify LightGlueMatcher with Type enum for ALIKED/DISK variants
Keep the single LightGlueMatcher public API from PR #28986. Add a Type
enum (ALIKED/DISK) to create() so users can select the model variant.
Internally, LightGlueMatcherImpl base class with two CV_FINAL subclasses
handles the variant-specific matching via pure virtual dispatch.
2026-09-06 12:10:03 +08:00
Prasad Ayush Kumar
e12dba3ff7 Merge pull request #29752 from Prasadayus:test_cleanup_features
features: re-enable & triage DISABLED tests - #29752

Requires: https://github.com/opencv/opencv_extra/pull/1404

### PR Changes:

### features test cleanup

  ### Re-enabled
  - `Features2d_Detector_MSER.regression` (`test_detectors_regression.cpp:47`). Two things were needed:
    - `MSER_Impl` overrides `detect()` and had dropped the empty-image guard its base class carries, so the
  harness's 0x0 probe reached `detectRegions`, which rejects anything under 3x3. Added the guard; FAST and GFTT
  already carry the identical block.
    - The stored baseline held 215 keypoints against the 210 MSER finds today. The drift comes from
  `minDiversity` entering region rejection in `fa73b91e39` and the later `fitEllipse` rework.


### Pull Request Readiness Checklist

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
2026-08-25 17:12:30 +03:00
Shelia J.
fb90451e95 Merge pull request #29361 from SheliaJimenez:xfeat-feature
Xfeat feature - #29361

## PR Description

### Summary

Integrate XFeat into OpenCV's `features` module as a native `Feature2D` implementation, enabling lightweight neural feature detection and descriptor extraction through OpenCV's standard feature extraction API.

---

### What's included

#### New class

- **`cv::XFeat`** extends `Feature2D`
  - CNN-based keypoint detection
  - 64-D descriptor extraction via ONNX/DNN
  - Score-map based keypoint selection
  - Descriptor sampling from the dense feature map

---

### Files added

| File | Description |
|------|-------------|
| `src/feature2d_xfeat.cpp` | XFeat `Feature2D` implementation |
| `test/test_xfeat.cpp` | XFeat unit and regression tests |

---

### Files modified

- `features.hpp`
  - Add `cv::XFeat` declaration and public factory APIs

---

### Usage

```cpp
#include <opencv2/features.hpp>

using namespace cv;

// Feature extraction
Ptr<XFeat> xfeat =
    XFeat::create("xfeat.onnx", 2000, 0.5f, 640);

std::vector<KeyPoint> keypoints;
Mat descriptors;

xfeat->detectAndCompute(image, noArray(), keypoints, descriptors);
```

---


### Test dependency

Depends on the opencv_extra changes adding the XFeat ONNX model and reference outputs.

Required test data:
https://github.com/opencv/opencv_extra/pull/1383

- `xfeat.onnx`
- `xfeat_lena_640_kpts.npy`
- `xfeat_lena_640_desc.npy`

These files are required for the `Features2d_XFeat` tests in the main OpenCV repository to validate XFeat feature extraction and descriptor generation.


### Pull Request Readiness Checklist

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
- [ ] 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
2026-08-14 15:07:52 +03:00
Neal Daftary
54b61d806e Merge pull request #29679 from Neal006/features:keypoint-bool-mask
features: accept CV_Bool masks in SIFT detect (#25895) - #29679

### Problem

`cv::Mat_<bool>::depth()` returns `CV_Bool` in 5.0, where it returned `CV_8U` in 4.x. `SIFT_Impl::detectAndCompute` gates the mask at `sift.dispatch.cpp:980`, so a boolean detection mask now fails with:

```
(-5:Bad argument) mask has incorrect type (!=CV_8UC1) in function 'cv::SIFT_Impl::detectAndCompute'
```

### Fix

Allow `CV_BoolC1` in that check, and update the message accordingly.

No conversion is needed. The mask is consumed by `KeyPointsFilter::runByPixelsMask`, whose `MaskPredicate` reads it with `Mat::at<uchar>`, and `Mat::at` only asserts that the element size matches (`CV_ELEM_SIZE1(traits::Depth<_Tp>::value) == elemSize1()`). `CV_Bool` is one byte like `CV_8U`, so the existing read is already correct for a boolean mask.

That is also why `FastFeatureDetector` and `SimpleBlobDetector`, which have no explicit mask type check and route through the same predicate, already accepted boolean masks. The only thing standing in the way was SIFT's own check.

This follows the same approach `goodFeaturesToTrack` already uses in this module (`featureselect.cpp:301` accepts `CV_8UC1 || CV_BoolC1`).

### Test

`Features2d_Detector_Keypoints_BoolMask.matches_uchar_mask` builds a synthetic image with circles and rectangles, runs FAST, SIFT and SimpleBlobDetector with a `Mat_<bool>` mask and with the equivalent `CV_8UC1` mask, and requires the same keypoints from each.

Verified locally on 5.x: the test fails without the change (SIFT throws the error above) and passes with it. FAST and SimpleBlobDetector are included to pin their already-working behaviour against future regressions. No test data needed, the test is synthetic.

Part of #25895.

### Pull Request Readiness Checklist

- [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
2026-08-14 08:01:38 +03:00
Lazizbek Ergashev
02466fac6b features: fix MSER discarding stable regions via minDiversity (#29652) 2026-08-03 13:13:36 +05:00
Abhishek Gola
c2e0e4edb9 removed engine classic related elements 2026-07-28 20:27:29 +05:30
Abhishek Gola
49b8f7c03f engine classic removed 2026-07-28 20:27:29 +05:30
Anand Mahesh
60c705e93b Merge pull request #29450 from manand881:feat/ocl-sift-descriptor
Feat: add OpenCL SIFT detector and descriptor #29450

Add OpenCL implementation of SIFT detector and
descriptor extractor, triggered via T-API when
the caller passes a UMat. Targets the features
module (5.x directory layout).

Implementation:
- 4 OpenCL kernels in sift.cl: gaussian_blur_h, gaussian_blur_v, detect_and_orient, and compute_descriptor.
- Host-side dispatch in sift.dispatch.cpp using CV_OCL_RUN_ macro, pure additions to the existing CPU path.
- T-API entry: detectAndCompute, detect, compute.

Gating and fallback:
- 64-bit only. 32-bit falls back to CPU via sizeof(void*) > 4 guard.
- OpenCL 1.1 or later required. Devices below 1.1 fall back to CPU.
- No-OpenCL builds fall back to CPU. Verified with WITH_OPENCL=OFF: 79 tests pass, same 3 pre-existing failures (DISK/AFFINE_FEATURE missing .npy data files).

Correctness:
- nOctaveLayers > 3 OOB fix: gk_coeffs and gk_radius resized to nOctaveLayers+2 via std::vector (were fixed size 5).
- Regression test for nOctaveLayers > 3.
- 10 OCL SIFT tests pass, 60 OCL tests pass, 139 features tests pass (3 pre-existing failures unrelated to SIFT).

Performance optimizations:
- native_exp, native_sqrt, native_recip for hardware approximations (OpenCL 1.1 builtins).
- Eliminate intermediate rawDst[128] buffer; normalize in-place from hist[].
- Non-blocking kernel launches with single ocl::finish() before host reads keypoint count.
- Custom separable Gaussian blur for init image bypassing T-API GaussianBlur dispatch overhead.
- exp2() replaces pow(2.0f, x); scl_octv reused.
- Hoist UMat tmp allocation out of pyramid loop.
- Interleaved keypoint output buffer (6 arrays to 1) for coalesced writes and fewer copies.
- Consolidated descriptor keypoint copies (2N to 2 host-to-device transfers).
- std::map replaced with flat vector indexed by pyramid level (O(1) vs O(log n)).
- DoG computed on-the-fly in detect kernel via READ_DOG macro, eliminating 45 subtract() calls and dog_pack allocation.
- Shared gauss_packs between detect and descriptor, eliminating duplicate copyTo.
- Cross-level packing per octave: one descriptor kernel launch per octave instead of per level. Keypoint buffer expanded to 5 floats (added layer index). Levels packed into single UMat. Reduces kernel launch overhead and improves GPU utilization for octaves with few keypoints.
- __local memory tiling for Gaussian blur kernels with 16x16 workgroups and cooperative halo loading. Reduces global memory traffic.
- Direct uchar descriptor output for CV_8U: kernel writes convert_uchar_sat_rte directly instead of float buffer + host convertTo pass. Eliminates temp allocation and extra kernel launch.

Performance result (stitching/s2.jpg resized):
- DetectAndCompute: OCL wins at >=960x540 (1.32x at 960x540, 1.80x at 1280x720, 1.87x at 1920x1080).
- Compute-only: OCL wins at >=1280x720 (1.60x at 1280x720, 1.78x at 1920x1080).

Tests:
- modules/features/test/ocl/test_feature2d.cpp with OCL SIFT correctness tests on real images (leuven img1.png, a3.png, s2.jpg).
- DescriptorType, Regression_26139, and Batch tests mirror CPU coverage (CV_8U descriptor type, single-keypoint edge case, 6-image detect+compute).
- modules/features/perf/opencl/perf_sift.cpp with real image and 5-size sweep.
- CPU SIFT_Scaled fixture added to perf_feature2d.cpp for aligned OCL vs CPU comparison.

### Pull Request Readiness Checklist

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
- [ ] 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
2026-07-15 12:29:43 +03:00
Anand Mahesh
0fb620f0f0 Fix: BFMatcher isMaskSupported false on crossCheck
isMaskSupported now returns false when the matcher is
created with crossCheck enabled, because the mask
path is unsupported in that mode. knnMatchImpl also
drops the mask so it cannot reach batchDistance and
trigger its mask.empty() assertion.

https://github.com/opencv/opencv/issues/22093
2026-07-13 08:56:07 +05:30
Alexander Smorkalov
abb0115648 Merge branch 4.x 2026-07-09 12:17:24 +03:00
Alexander Smorkalov
854cf4225d Skip DNN features test on 32-bit platforms as they time-to-time do not feet 2GB RAM. 2026-07-06 10:03:24 +03:00
Abhishek Gola
49a4522ea9 fixed warnings 2026-06-05 21:13:24 +05:30
Yang Guanyuhan
527f01449d Merge pull request #28986 from YangGuanyuhan:ai-aliked-lightglue-pipeline
[GSOC] feat: Add ALIKED feature extractor and LightGlue matcher with DNN integration #28986

## PR Description

### Summary

Integrate ALIKED and LightGlue into OpenCV's `features` module as native`Feature2D` and `DescriptorMatcher` implementations, enabling end-to-end neural feature matching within OpenCV's ecosystem.

---

### What's included

#### New classes

- **`cv::ALIKED`** extends `Feature2D`
  - CNN-based keypoint detection
  - 128-D descriptor extraction via ONNX Runtime

- **`cv::LightGlueMatcher`** extends `DescriptorMatcher`
  - Deep feature matching with spatial context
  - Uses keypoints and image sizes during matching

---

#### API design

- Standard OpenCV patterns:
  - `detectAndCompute()`
  - `match()`
  - `knnMatch()`

- Multiple factory methods:
  - ONNX model path
  - In-memory model buffer
  - Pre-loaded `dnn::Net`

- `Params` structs use `CV_EXPORTS_W_SIMPLE`
  for Python/Java bindings support

- Optional DNN dependency:
  - `HAVE_OPENCV_DNN` guards
  - Stub implementations throw `StsNotImplemented`

---

### Files added

| File | Description |
|------|-------------|
| `src/feature2d_aliked.cpp` | ALIKED implementation |
| `src/matchers_lightglue.cpp` | LightGlueMatcher implementation |
| `src/aliked_context.hpp` | Shared internal context struct |
| `test/test_aliked_lightglue.cpp` | Unit tests (9 test cases) |
| `samples/cpp/example_features_aliked_lightglue.cpp` | Demo application |

---

### Files modified

- `CMakeLists.txt`
  - Add `opencv_dnn` as optional dependency

- `features.hpp`
  - Add ALIKED and LightGlueMatcher declarations

- `precomp.hpp`
  - Add DNN include guard

---

### Usage

```cpp
// Feature extraction
Ptr<ALIKED> aliked =
    ALIKED::create("aliked-n16rot-top1k-640.onnx");

vector<KeyPoint> kpts;
Mat descs;

aliked->detectAndCompute(image, Mat(), kpts, descs);

// Feature matching
Ptr<LightGlueMatcher> lg =
    LightGlueMatcher::create("aliked_lightglue.onnx");

lg->setPairInfo(
    kpts1Mat,
    kpts2Mat,
    img1.size(),
    img2.size()
);

vector<DMatch> matches;
lg->match(descs1, descs2, matches);
````
please refer to samples/cpp/example_features_aliked_lightglue.cpp

---

### Test plan

* Build with `BUILD_LIST=features,dnn`
* Build without DNN:

  * Verify stubs compile
  * Verify `StsNotImplemented` is thrown
* Run:

  * `ctest -R Features2d_ALIKED`
  * `ctest -R Features2d_LightGlueMatcher`
* Run sample application with:

  * Real images
  * Real ONNX models
* Verify Python/Java bindings compile and work

---

### Related

Phase 1 of the
"End-to-End AI Feature Extraction and LightGlue Matching Pipeline"
GSoC project.

Designed to be extensible to:

* XFeat
* SuperPoint
* Other neural feature extractors

### test dependency

Depends on the opencv_extra PR adding ALIKED and LightGlue test models:

- [opencv_extra PR](https://github.com/opencv/opencv_extra/pull/1366)

This PR adds the following ONNX models to `download_models.py`:

- `aliked-n16rot-top1k-640.onnx`
- `aliked_lightglue.onnx`

These models are required for the `features2d` tests in the main OpenCV repository to validate the ALIKED and LightGlue feature extraction and matching pipeline.

### Pull Request Readiness Checklist

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
- [ ] 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
2026-06-05 14:20:53 +03:00
Abhishek Gola
b0b77e7b32 Merge pull request #29073 from abhishek-gola:disk_feature_extractor
Added DISK feature extractor support #29073

closes: https://github.com/opencv/opencv/issues/27083
Merge with: https://github.com/opencv/opencv_extra/pull/1368/

### Pull Request Readiness Checklist

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
2026-06-03 13:11:11 +03:00
satyam yadav
cc8f683b6a Merge pull request #28482 from satyam102006:core/yaml-1-2-support
core: add YAML 1.2 support for FileStorage #28482

Fixes: #26363
CI Update: https://github.com/opencv/ci-gha-workflow/pull/306

Summary: 
- Bool true/false literals support
- Header-less YAMLs support for Python YAML module compatibility. Header-less files are parsed as YAMLs by default
- Added FORMAT_YAML_1_0 flag to FileStorage for fallback.
- New YAML1.2 header

Testing: 
- Added Core_InputOutput.YAML_1_2_Compatibility test case in test_io.cpp.
- Added YAML interop test in Python
2026-05-19 13:44:50 +03:00
Alexander Smorkalov
7bde3f9ae9 Merge branch 4.x 2026-04-24 11:11:26 +03:00
Alexander Smorkalov
5166a6b716 Migrated goodFeaturesToTrack to features module. 2026-04-14 11:25:29 +03:00
Alexander Smorkalov
82ff8e45e9 Merge branch 4.x 2026-02-14 15:37:33 +03:00
Alexander Smorkalov
1483504702 Merge branch 4.x 2025-02-20 13:58:04 +03:00
Alexander Smorkalov
55a2ca58f0 Merge branch 4.x 2025-02-05 09:28:27 +03:00
WU Jia
614e250fd3 Merge pull request #26405 from kaingwade:rename_features2d
Rename features2d #26405

This PR renames the module _features2d_ to _features_ as one of the Big OpenCV Cleanup #25007. 
Related PR: opencv/opencv_contrib: [#3820](https://github.com/opencv/opencv_contrib/pull/3820) opencv/ci-gha-workflow: [#192](https://github.com/opencv/ci-gha-workflow/pull/192)
2024-11-12 11:04:48 +03:00