UNPKG

image-js

Version:

Image processing and manipulation in JavaScript

17 lines 697 B
import type { Point } from '../index_full.ts'; export interface ConvexityDefectsOptions { /** * Depth threshold to remove smaller convexity defaults. * @default 0 */ depthThreshold?: number; } /** * Find border points that are farthest from its convex hull lines. Inspired by openCV's convexityDefects. * @param borderPoints - Mask's border points. * @param hullPoints - Mask's convex hull points. * @param options - Convexity defects options. * @returns Array of convexity defects. */ export declare function getConvexityDefects(borderPoints: Point[], hullPoints: Point[], options?: ConvexityDefectsOptions): Point[]; //# sourceMappingURL=getConvexityDefects.d.ts.map