CtrlK
BlogDocsLog inGet started
Tessl Logo

tessl/npm-sharp

High performance Node.js image processing library for resizing JPEG, PNG, WebP, GIF, AVIF and TIFF images

80

1.01x
Overview
Eval results
Files

rubric.jsonevals/scenario-7/

{
  "context": "This evaluation assesses how well the engineer uses Sharp's CLAHE (Contrast Limited Adaptive Histogram Equalization) functionality to enhance medical images. The focus is on correct usage of the clahe() method with its parameters and integration within Sharp's image processing pipeline.",
  "type": "weighted_checklist",
  "checklist": [
    {
      "name": "Sharp instance creation",
      "description": "Uses sharp() constructor to load input image from the provided file path",
      "max_score": 15
    },
    {
      "name": "CLAHE method usage",
      "description": "Calls the .clahe() method on the Sharp instance to apply adaptive histogram equalization",
      "max_score": 30
    },
    {
      "name": "Width parameter",
      "description": "Passes the 'width' option to clahe() method to control the window size for local histogram computation",
      "max_score": 20
    },
    {
      "name": "MaxSlope parameter",
      "description": "Passes the 'maxSlope' option to clahe() method to limit contrast amplification",
      "max_score": 20
    },
    {
      "name": "Output handling",
      "description": "Uses .toFile() or equivalent Sharp output method to save the processed image to the specified output path",
      "max_score": 15
    }
  ]
}

Install with Tessl CLI

npx tessl i tessl/npm-sharp

tile.json