Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/netsaur/packages/utilities/src/mod.ts>Image

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
class Image
implements ImageData
Re-export
import { Image } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/mod.ts";

Constructors

new
Image(data: ImageOptions)

Properties

channels: number
colorSpace: "srgb" | "display-p3"
data: Uint8ClampedArray
height: number
readonly
pixels: number
width: number

Methods

getNthPixel(n: number):
[
number,
number,
number,
number,
]
getPixel(row: number, col: number): Pixel
setPixel(
row: number,
col: number,
unnamed 2: Pixel,
)
updatePixel(
row: number,
col: number,
color: Pixel,
)

Constructors

new
Image(data: ImageOptions)

Properties

channels: number
colorSpace: "srgb" | "display-p3"
data: Uint8ClampedArray
height: number
readonly
pixels: number
width: number

Methods

getNthPixel(n: number):
[
number,
number,
number,
number,
]
getPixel(row: number, col: number): Pixel
setPixel(
row: number,
col: number,
unnamed 2: Pixel,
)
updatePixel(
row: number,
col: number,
color: Pixel,
)