detail_GraphCutSeamFinder
import { detail_GraphCutSeamFinder } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
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_typecost type argument (EmbindString).
terminal_costterminal cost argument (number).
bad_region_penaltybad region penalty argument (number).
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;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;srcsrc argument (UMatVector).
cornerscorners argument (PointVector).
masksInput/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.