detail_GainCompensator
import { detail_GainCompensator } 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_ExposureCompensator.
Exposure compensator which tries to remove exposure related artifacts by adjusting image intensities, see [BL07] and [WJ10] for details.
Constructors and members
static new
Create an owned detail_GainCompensator object. Release native handles with using or delete().
new(nr_feeds: number): detail_GainCompensator;nr_feedsnr feeds argument (number).
The detail_GainCompensator 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
Compensate exposure in the specified image.
apply(index: number, corner: Point, image: Mat, mask: Mat): void;indexImage index
cornerImage top-left corner
imageInput/output value, modified by the native operation. Image to process
maskImage mask
getMatGains
Return the mat gains configured on this detail_GainCompensator object.
getMatGains(umv: MatVector): void;umvOutput destination, filled by the native operation. umv argument (MatVector).
setMatGains
Set the mat gains used by this detail_GainCompensator object.
setMatGains(umv: MatVector): void;umvumv argument (MatVector).
setNrFeeds
Set the nr feeds used by this detail_GainCompensator object.
setNrFeeds(nr_feeds: number): void;nr_feedsnr feeds argument (number).
getNrFeeds
Return the nr feeds configured on this detail_GainCompensator object.
getNrFeeds(): number;The number result.
setSimilarityThreshold
Set the similarity threshold used by this detail_GainCompensator object.
setSimilarityThreshold(similarity_threshold: number): void;similarity_thresholdsimilarity threshold argument (number).
getSimilarityThreshold
Return the similarity threshold configured on this detail_GainCompensator object.
getSimilarityThreshold(): number;The number result.
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.