Skip to content

Commit

Permalink
Regenerate docs and update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
twistedfall committed Oct 16, 2024
1 parent bac4f6e commit 6981835
Show file tree
Hide file tree
Showing 71 changed files with 46,140 additions and 45,512 deletions.
5 changes: 5 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
* 0.93.3
* Fix issue with using Option<Ptr>, now behaves as expected and doesn't segfault.
* Introduce `Mat::get_dump()` to get the dump of the Mat data, it's also included in the `Debug` output.
* Improve formatting of the generated bindings.

* 0.93.2
* Fix binding generation using clang-19.

Expand Down
14 changes: 7 additions & 7 deletions docs/alphamat.rs
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
pub mod alphamat {
//! # Alpha Matting
//! Alpha matting is used to extract a foreground object with soft boundaries from a background image.
//!
//!
//! 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.
//!
//!
//! The implementation is based on [aksoy2017designing](https://docs.opencv.org/4.10.0/d0/de3/citelist.html#CITEREF_aksoy2017designing).
//!
//!
//! This module was developed by Muskaan Kularia and Sunita Nayak as a project
//! for Google Summer of Code 2019 (GSoC 19).
use crate::{mod_prelude::*, core, sys, types};
use crate::mod_prelude::*;
use crate::{core, sys, types};
pub mod prelude {
pub use { };
}

/// Compute alpha matte of an object in an image
/// ## Parameters
/// * image: Input RGB image
/// * tmap: Input greyscale trimap image
/// * result: Output alpha matte image
///
///
/// 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.
#[inline]
pub fn info_flow(image: &impl ToInputArray, tmap: &impl ToInputArray, result: &mut impl ToOutputArray) -> Result<()> {
Expand Down
Loading

0 comments on commit 6981835

Please sign in to comment.