detail_BlocksCompensator
import { detail_BlocksCompensator } 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 blocks.
Constructors and members
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_BlocksCompensator object.
getMatGains(umv: MatVector): void;umvOutput destination, filled by the native operation. umv argument (MatVector).
setMatGains
Set the mat gains used by this detail_BlocksCompensator object.
setMatGains(umv: MatVector): void;umvumv argument (MatVector).
setNrFeeds
Set the nr feeds used by this detail_BlocksCompensator object.
setNrFeeds(nr_feeds: number): void;nr_feedsnr feeds argument (number).
getNrFeeds
Return the nr feeds configured on this detail_BlocksCompensator object.
getNrFeeds(): number;The number result.
setSimilarityThreshold
Set the similarity threshold used by this detail_BlocksCompensator object.
setSimilarityThreshold(similarity_threshold: number): void;similarity_thresholdsimilarity threshold argument (number).
getSimilarityThreshold
Return the similarity threshold configured on this detail_BlocksCompensator object.
getSimilarityThreshold(): number;The number result.
setBlockSize
Set the block size used by this detail_BlocksCompensator object.
setBlockSize(width: number, height: number): void;widthwidth argument (number).
heightheight argument (number).
setBlockSize1
Set the block size1 used by this detail_BlocksCompensator object.
setBlockSize1(size: Size): void;sizesize argument (Size).
getBlockSize
Return the block size configured on this detail_BlocksCompensator object.
getBlockSize(): Size;The Size result.
setNrGainsFilteringIterations
Set the nr gains filtering iterations used by this detail_BlocksCompensator object.
setNrGainsFilteringIterations(nr_iterations: number): void;nr_iterationsnr iterations argument (number).
getNrGainsFilteringIterations
Return the nr gains filtering iterations configured on this detail_BlocksCompensator object.
getNrGainsFilteringIterations(): 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.