Histogram based Features
Histogram based Features
For grayscale images: The histogram shows the distribution of pixel intensities, typically
ranging from 0 (black) to 255 (white). The x-axis represents the intensity values, and the y-
axis represents the number of pixels at each intensity.
For color images: Histograms can be created for each color channel (Red, Green, Blue)
separately, or a multi-dimensional histogram can represent the joint distribution of color
values.
Histogram-Based Features
Histograms themselves are not features. However, we can derive various features from the
histogram that provide useful information about the image's characteristics. Here are some key
histogram-based features:
o Formula:
where:
2. Median Intensity:
o The middle intensity value when all pixel intensities are sorted.
o More robust to outliers (very bright or very dark pixels) compared to the mean.
3. Mode Intensity:
o The most frequently occurring intensity value (the peak of the histogram).
5. Skewness:
6. Kurtosis:
7. Entropy:
o Formula:
where:
8. Histogram Bins:
o The number of bins used to create the histogram can itself be a feature.
o A higher number of bins provides finer detail but can be more sensitive to noise.
9. Percentiles:
Image Segmentation: Histograms can help identify thresholds for separating objects from
the background based on intensity differences.
Image Classification: Histogram features can be used as input to machine learning models
for classifying images based on their content.
Content-Based Image Retrieval (CBIR): Histograms can be used to compare images based on
their color or intensity distributions.
Medical Image Analysis: Histograms can help identify abnormalities in medical images based
on the distribution of tissue densities.
Robustness to Rotation and Translation: Histograms are generally invariant to rotation and
translation of objects in the image.
Simplicity: They provide a simple yet effective way to represent the global intensity
distribution of an image.
Limitations
Lack of Spatial Information: Histograms only represent the global distribution of intensities
and do not capture spatial relationships between pixels.