Skip to main content
Version: 0.10.0

Function: scalePoint()

scalePoint(point, options): Point

Defined in: extensions/cv/ops/point.ts:64

Helper function to scale a 2D point based on resize mode and resolution changes.

Parameters​

point​

Point

The original coordinate point to scale.

options​

ScalePointOptions

Options detailing the scaling factors and resize mode. See ScalePointOptions.

Returns​

Point

The scaled coordinate point.

We are Software Mansion.