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

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

Powerful Powerful Machine Learning library with GPU, CPU and WASM backends
Latest
function patch2d
import { patch2d } from "https://deno.land/x/netsaur@0.4.2/packages/utilities/src/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

A collection of patches as a single Uint8ClampedArray