MCPcopy Create free account
hub / github.com/Oslonline/dithering-studio / AlgorithmDetail

Interface AlgorithmDetail

src/utils/algorithmInfo.ts:1–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1export interface AlgorithmDetail {
2 id: number;
3 name: string;
4 category: string;
5 overview: string;
6 kernel?: number[][];
7 kernelDivisor?: number;
8 orderedMatrixSize?: string;
9 characteristics: string[];
10 artifacts: string[];
11 bestFor: string[];
12 complexity: string;
13 reference?: string;
14 papers?: { title: string; url: string; note?: string }[];
15 year?: number;
16 origin?: string;
17 errorConserving?: boolean;
18 deterministic?: boolean;
19 neighborhood?: string;
20 tonalBias?: string;
21 noiseProfile?: string;
22 memoryFootprint?: string;
23 recommendedPalettes?: string[];
24 implementationNotes?: string[];
25 references?: string[];
26 notes?: string[];
27 technicalSummary?: string;
28}
29
30export const algorithmDetails: AlgorithmDetail[] = [
31 { id: 1, name: "Floyd–Steinberg", category: "Error Diffusion", overview: "Classic error-conserving diffusion (7/16,3/16,5/16,1/16) balancing quality and speed.", kernel: [[0, 0, 7], [3, 5, 1]], kernelDivisor: 16, characteristics: ["Good gradients", "Fine grain", "Baseline reference"], artifacts: ["Diagonal peppering", "Noise amplification"], bestFor: ["Photographs", "General reduction"], complexity: "O(N)", reference: "Floyd & Steinberg 1976", papers: [{ title: "An Adaptive Algorithm for Spatial Greyscale", url: "https://en.wikipedia.org/wiki/Floyd%E2%80%93Steinberg_dithering", note: "Summary (Wikipedia)" }], year: 1976, origin: "Bell Labs", errorConserving: true, deterministic: true, neighborhood: "Forward 3×2 footprint", tonalBias: "Neutral", noiseProfile: "Fine directional", memoryFootprint: "1 buffer", recommendedPalettes: ["2", "4", "16", "Web 216"], implementationNotes: ["Serpentine optional to reduce directional bias"], notes: ["Widely implemented in printers & image libs."] },

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected