detail_BlocksGainCompensator
import { detail_BlocksGainCompensator } 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_BlocksCompensator.
Exposure compensator which tries to remove exposure related artifacts by adjusting image block intensities, see [UES01] for details.
Constructors and members
static new
Create an owned detail_BlocksGainCompensator object. Release native handles with using or delete().
new(bl_width: number, bl_height: number, nr_feeds: number): detail_BlocksGainCompensator;4 available overloads
new(): detail_BlocksGainCompensator;new(bl_width: number): detail_BlocksGainCompensator;new(bl_width: number, bl_height: number): detail_BlocksGainCompensator;new(bl_width: number, bl_height: number, nr_feeds: number): detail_BlocksGainCompensator;bl_widthbl width argument (number).
bl_heightbl height argument (number).
nr_feedsnr feeds argument (number).
The detail_BlocksGainCompensator 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.
apply
This function only exists to make source level compatibility detector happy
apply(index: number, corner: Point, image: Mat, mask: Mat): void;indexindex argument (number).
cornercorner argument (Point).
imageInput/output value, modified by the native operation. image argument (Mat).
maskmask argument (Mat).
getMatGains
This function only exists to make source level compatibility detector happy
getMatGains(umv: MatVector): void;umvOutput destination, filled by the native operation. umv argument (MatVector).
setMatGains
This function only exists to make source level compatibility detector happy
setMatGains(umv: MatVector): void;umvumv argument (MatVector).
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.