Methods
map_luma
-
Parameters
-
f: function
-
- (x: number, y: number, px: number): number
-
Parameters
-
x: number
-
y: number
-
px: number
Returns number
reduce_luma
- reduce_luma<T>(initial_value: T, f: function): Promise<T>
-
Type parameters
Parameters
-
initial_value: T
-
f: function
-
- (accumulator: T, x: number, y: number, px: number): T
-
Parameters
-
accumulator: T
-
x: number
-
y: number
-
px: number
Returns T
Returns Promise<T>
to_image
- to_image(): Promise<Image>
A decoded grayscale image. Primarily used in more advanced image processing pipelines. Laymen users are probably looking for the 'Image' type.
Each pixel is a 32-bit unsigned integer, primarily used for representing labeled images/regions.