process abstract method

PreprocessedFrame process(
  1. Uint8List gray,
  2. int width,
  3. int height,
  4. PreprocessingContext context,
)

Processes a raw grayscale frame and returns the enhanced result.

gray — Single-channel grayscale pixel buffer. width, height — Image dimensions. context — Preprocessing context with current image metrics.

Returns a PreprocessedFrame containing the processed image and metadata.

Implementation

PreprocessedFrame process(
  Uint8List gray,
  int width,
  int height,
  PreprocessingContext context,
);