UNPKG

fast-sobel-tfjs

Version:

GPU-accelerated Sobel edge detection for TensorFlow.js - 5-10x faster than CPU implementations

17 lines (16 loc) 645 B
import { GradientProcessor, OutputFormat } from './types'; /** * Collection of output processing strategies for Sobel gradients */ export declare const OUTPUT_PROCESSORS: Record<OutputFormat, GradientProcessor>; /** * Validates whether an output format is supported * @param format The output format to validate * @returns True if the output format is supported, false otherwise */ export declare function isValidOutputFormat(format: string): format is OutputFormat; /** * Gets the available output formats as an array * @returns Array of supported output formats */ export declare function getAvailableOutputFormats(): OutputFormat[];