Add TryFrom<i32> impls for enums to allow easy fallible conversions from i32.
0.91.0
Multiple improvements for InputArray/OutputArray/InputOutputArray handling:
It's now possible to use the following types as InputArray: &[u8]/[u8; N], Vector<bool>Vector<GpuMat> and the
following as InputArray, OutputArray or InputOutputArray: Vector<Mat> and Vector<UMat>.
InputArray/OutputArray/InputOutputArray constructors now return BoxedRef/BoxedRefMut to express the borrowing
semantics.
Some constructors have received _mut suffix where appropriate.
Unsafe Mat constructors (*_with_data) have received _unsafe suffix and safe versions have been introduced that return
BoxedRef/BoxedRefMut. Consequently, Mat::from_slice_rows_cols was replaced by Mat::new_rows_cols_with_data, note the
different order and types of the arguments.
MatSize::new is now unsafe and accepts a pointer.
0.90.0
Automatically generate default constructors for classes where posssible.
Backwards-incompatible changes:
LayerParams::default() can no longer fail, so it returns Self without Result.
GpuMat::default() is now GpuMat::new_def().
Automatically named functions (*_1) in features2d module were given proper names.
Generate bindings to float16_t and hfloat types to fix the build with the current OpenCV master.
0.89.0
All functions accepting classes now take impl ClassTrait instead of Class directly. This allows passing other objects
that implement the same trait. This change should be backwards compatible.
Some functions, notably Mat::roi(), now return a BoxedRef<Mat> wrapper instead of seemingly independent Mat. This fixes
old soundness hole because the returned Mat was actually a view into the source Mat and you could easily end up with 2
mutable references to the same memory. An additional *_mut() is generated for each of such function to return a
mutable BoxedRefMut<Mat>. To get 2 mutable references to the same Mat for the non-intersecting regions use the
new Mat::roi_2_mut() function.
Slice detection improved, slice arguments in more functions are now generated automatically.
Some slices in function arguments are now references to arrays of particular size. To migrate call .try_into() to convert
the slice to the array.
The error message for the unspecified error (should never actually be visible) is changed to "Unspecified error, neither from
OpenCV nor from std".
Function signature changes:
A group of functions for Mat, UMat, GpuMat and GpuMatND have been given proper
names (rowscols, roi, ranges, col_bounds). Consequently, e.g. roi function can now be called on the Mat
instance (mat.roi()) instead of requiring a fully qualified call (Mat::roi(&mat)).
MatConstIterator::pos_to() is now unsafe and takes a pointer instead of a reference.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps opencv from 0.88.7 to 0.91.1.
Changelog
Sourced from opencv's changelog.
Commits
f15edc7
chore: Released053a57
chore: Releasef86e068
Implement TryFrom for enumerations9611d66
Cleanup0aa2418
Cleanupdc5f695
Refactor95ccdd5
Fix36e49fd
Refactor: Use state amchine819b33c
chore: Add example to create mask and useset_mouse_callback
d2f3731
Merge branch 'sjbeskur-unit/feature2d-bfmatcher'Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show