Histogram
Histogram (Tonal Distribution Graph)
An image histogram is a graph showing the distribution of pixel brightness values from shadows (left) to highlights (right). Photographers and editors use histograms to evaluate exposure, contrast, and tonal balance.
รายละเอียดทางเทคนิค
A histogram plots 256 bins (for 8-bit images) where each bin counts pixels at that brightness level. RGB histograms show separate red, green, and blue channel distributions to identify color casts.
ตัวอย่าง
```javascript
// Histogram: processing with Canvas API
const canvas = document.createElement('canvas');
const ctx = canvas.getContext('2d');
ctx.drawImage(sourceImage, 0, 0);
const imageData = ctx.getImageData(0, 0, canvas.width, canvas.height);
// Process pixels in imageData.data (RGBA array)
```
เครื่องมือที่เกี่ยวข้อง
C
Compress Image
R
Resize Image
C
Crop Image
R
Rotate Image
F
Flip Image
C
Convert Image
W
Watermark Image
S
SVG to PNG
I
Image to Base64
R
Round Corners
A
Add Border
I
Image Filters
A
Adjust Image
B
Blur Image
S
Sharpen Image
M
Make Square
G
Grayscale Image
S
Sepia Image
P
Pixelate Image
S
Strip Image Metadata