Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/vectorizer/mod.ts>patch2d

Machine Learning utilities for TypeScript
Latest
function patch2d
import { patch2d } from "https://deno.land/x/vectorizer@v0.7.5/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