detail_createWeightMap
import { detail_createWeightMap } from '@banou/opencv-wasm'Use after await initOpenCV(). See the initialization and named imports guide.
ARGUMENTSmask, sharpness, weight
FUNCTIONdetail_createWeightMap
RETURN TYPEvoid
Create an owned void instance with the supplied configuration.
detail_createWeightMap(mask: Mat, sharpness: number, weight: Mat): void;maskmask argument (Mat).
sharpnesssharpness argument (number).
weightInput/output value, modified by the native operation. weight argument (Mat).
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.