Skip to content

Commit a791f77

Browse files
committed
Regenerate docs and update changelog
1 parent e5f37a9 commit a791f77

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+46140
-45512
lines changed

CHANGES.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
* 0.93.3
2+
* Fix issue with using Option<Ptr>, now behaves as expected and doesn't segfault.
3+
* Introduce `Mat::get_dump()` to get the dump of the Mat data, it's also included in the `Debug` output.
4+
* Improve formatting of the generated bindings.
5+
16
* 0.93.2
27
* Fix binding generation using clang-19.
38

docs/alphamat.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
11
pub mod alphamat {
22
//! # Alpha Matting
33
//! Alpha matting is used to extract a foreground object with soft boundaries from a background image.
4-
//!
4+
//!
55
//! This module is dedicated to computing alpha matte of objects in images from a given input image and a greyscale trimap image that contains information about the foreground, background and unknown pixels. The unknown pixels are assumed to be a combination of foreground and background pixels. The algorithm uses a combination of multiple carefully defined pixels affinities to estimate the opacity of the foreground pixels in the unkown region.
6-
//!
6+
//!
77
//! The implementation is based on [aksoy2017designing](https://docs.opencv.org/4.10.0/d0/de3/citelist.html#CITEREF_aksoy2017designing).
8-
//!
8+
//!
99
//! This module was developed by Muskaan Kularia and Sunita Nayak as a project
1010
//! for Google Summer of Code 2019 (GSoC 19).
11-
use crate::{mod_prelude::*, core, sys, types};
11+
use crate::mod_prelude::*;
12+
use crate::{core, sys, types};
1213
pub mod prelude {
13-
pub use { };
1414
}
15-
15+
1616
/// Compute alpha matte of an object in an image
1717
/// ## Parameters
1818
/// * image: Input RGB image
1919
/// * tmap: Input greyscale trimap image
2020
/// * result: Output alpha matte image
21-
///
21+
///
2222
/// The function infoFlow performs alpha matting on a RGB image using a greyscale trimap image, and outputs a greyscale alpha matte image. The output alpha matte can be used to softly extract the foreground object from a background image. Examples can be found in the samples directory.
2323
#[inline]
2424
pub fn info_flow(image: &impl ToInputArray, tmap: &impl ToInputArray, result: &mut impl ToOutputArray) -> Result<()> {

0 commit comments

Comments
 (0)