compute method

  1. @override
double compute(
  1. Image image
)
override

Implementation

@override
double compute(img.Image image) {
  // Frequency-based sharpness calculation
  double frequencySharpness = _computeFrequencySharpness(image);

  // High-frequency content-based sharpness calculation
  double highFrequencySharpness = _computeHighFrequencySharpness(image);

  // Combine the two metrics (you can choose how to combine them)
  return (frequencySharpness + highFrequencySharpness) / 2;
}