# Clahe Contrast Limited Adaptive Histogram

> Enhances local feature contrast in shadowed or hazy imagery using CLAHE algorithms. Use when revealing hidden details in medical X-rays, satellite imagery, and

- Skill: `bishnucd/clahe-contrast-limited-adaptive-histogram` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx get-skill add bishnucd/clahe-contrast-limited-adaptive-histogram`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bishnucd/clahe-contrast-limited-adaptive-histogram/raw
- Safety review: pending
- Works with: any agent that reads SKILL.md (Claude Code, Claude.ai, Cursor, Codex, Windsurf, 60+ more)
- Category: Coding & Dev Tools
- Author: Bishnucd (https://skillmd.com/u/bishnucd)
- Updated: 2026-12-03
- Page: https://skillmd.com/skills/bishnucd/clahe-contrast-limited-adaptive-histogram

---

---
name: clahe-contrast-limited-adaptive-histogram
description: Enhances local feature contrast in shadowed or hazy imagery using CLAHE algorithms. Use when revealing hidden details in medical X-rays, satellite imagery, and low-light photos.
license: MIT
metadata:
  author: Community List Maintainers
  version: "1.0.0"
  source: "https://docs.opencv.org/4.x/d5/daf/tutorial_py_histogram_equalization.html"
---
# Clahe Contrast Limited Adaptive Histogram

## Overview
Global histogram equalization washes out images and amplifies noise. CLAHE operates on localized contextual image tiles and clips histogram peaks to prevent over-amplifying noise.

## Operational Workflow

1. **Convert image to LAB color space to isolate the L (luminance) channel from color channels.**:
   - Convert image to LAB color space to isolate the L (luminance) channel from color channels.

2. **Instantiate CLAHE object with clipLimit=2.0 and tileGridSize=(8, 8).**:
   - Instantiate CLAHE object with clipLimit=2.0 and tileGridSize=(8, 8).

3. **Apply CLAHE equalization exclusively to the L channel.**:
   - Apply CLAHE equalization exclusively to the L channel.

4. **Merge equalized L channel back with A and B channels and convert to RGB.**:
   - Merge equalized L channel back with A and B channels and convert to RGB.

## Recommended Tools & Environments
- CLAHE
- Histogram Equalization
- OpenCV
- Image Enhancement

## Verification & Execution Criteria
- Pre-execution validation verifies all prerequisites and inputs.
- Step-by-step progress logging confirms intermediate state transitions.
- Post-execution checks verify output integrity and clean exit codes.

