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

x/netsaur/packages/utilities/src/image/mod.ts>patch2d

Powerful machine learning, accelerated by WebGPU
Go to Latest
function patch2d
import { patch2d } from "https://deno.land/x/netsaur@0.4.0-patch/packages/utilities/src/image/mod.ts";

Extract patches from a 2d image

Parameters

image: Image

Source image to extract patches from

options: Patch2d

Dimensions of a single patch

Returns

PatchCollection

A collection of patches as a single Uint8ClampedArray