Start from the governing relation
This is the smallest equation that preserves the physics needed for the formula.
FORMULA / 016
Interactive derivation module for Histogram equalization.
Problem Definition
A low-contrast inspection image may hide defects until its gray-level distribution is stretched.
| Symbol | Quantity | Unit | Meaning |
|---|---|---|---|
| $r_k$ | Input gray level | level | Original intensity. |
| $p_r$ | Histogram probability | 無 | Normalized occurrence rate. |
| $s_k$ | Mapped gray level | level | Output intensity. |
Analytical Derivation
| Item | Assumption |
|---|---|
| Assumption 1 | Linear time-invariant or locally linear behavior is assumed when using transfer functions. |
| Assumption 2 | Parameters are treated as constant over the analysis interval. |
| Assumption 3 | Numerical plots are educational approximations, not full circuit or field solvers. |
This is the smallest equation that preserves the physics needed for the formula.
The model is simplified so the dominant mechanism is visible.
The final form is the one used for design, simulation, or measurement review.
parameter $\to0$dominant term remainsThe formula reduces to its simplest physical behavior.
parameter $\to\infty$parasitics and implementation limits dominateThe closed-form equation becomes a warning rather than a full implementation model.
Parametric Verification
Use the sliders to change the physical parameters and watch the formula expose its behavior. The metric panel keeps sample count and compute latency visible so the visualization remains an engineering instrument, not only a picture.
INTERACTIVE MODULE
Engineering Application
import numpy as np
def equalize(gray, levels=256):
hist, _ = np.histogram(gray, bins=levels, range=(0, levels-1))
cdf = hist.cumsum() / hist.sum()
return np.interp(gray, np.arange(levels), (levels-1)*cdf)