Skip to content

detail_GraphCutSeamFinder

stitchingclassOpenCV 5.0.0
import { detail_GraphCutSeamFinder } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSConstructor or factory
CLASSdetail_GraphCutSeamFinder
RETURN TYPEOwned native handle
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Native object: release it with using or delete(). Factories can return null; check before calling methods. Inherits detail_GraphCutSeamFinderBase.

Minimum graph cut-based seam estimator. See details in [Kwatra03] .

Constructors and members

static new

Create an owned detail_GraphCutSeamFinder object. Release native handles with using or delete().

new(cost_type: EmbindString, terminal_cost: number, bad_region_penalty: number): detail_GraphCutSeamFinder;
3 available overloads
new(cost_type: EmbindString): detail_GraphCutSeamFinder;
new(cost_type: EmbindString, terminal_cost: number): detail_GraphCutSeamFinder;
new(cost_type: EmbindString, terminal_cost: number, bad_region_penalty: number): detail_GraphCutSeamFinder;
cost_type

cost type argument (EmbindString).

terminal_cost

terminal cost argument (number).

bad_region_penalty

bad region penalty argument (number).

Returns

The detail_GraphCutSeamFinder result.

clone

Create another handle to the same native object. This retains the object without copying its pixels or algorithm state; dispose both handles separately.

clone(): this;
Returns

The this result.

find

Find graph-cut seams through overlapping images and update the supplied image masks.

find(src: UMatVector, corners: PointVector, masks: UMatVector): void;
src

src argument (UMatVector).

corners

corners argument (PointVector).

masks

Input/output value, modified by the native operation. masks argument (UMatVector).

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.