An image which is under-exposed will have a histogram that
An under-exposed image appears dark and hence has many dark pixels. This will result in a histogram where most of the bins filled correspond to low grey levels; hence, the histogram's peak will appear at low grey-level values (normally towards the left of the histogram).
What is contrast stretching?
Contrast stretching is expanding the occupancy of the grey level bins in the histogram, usually for display.
OpenCV was initially developed in
Perhaps surprisingly, the early versions of OpenCV were developed in Russia, at Intel's research center in Nizhny Novgorod.
In OpenCV, if Y indexes lines, X columns and C channels, the right nesting >of loops is
- X inside Y inside C
- Y inside X inside C
C inside X inside Y
- C inside Y inside X
The C subscript should cycle fastest in all languages you will use OpenCV with, followed by the X subscript. The Y subscript should cycle slowest. This order mimics the way in which the pixels are stored in memory and thus minimises cache misses etc.
Histogram equalization involves:
To perform histogram equalization, one forms the cumulative histogram, which has near-vertical shape in regions where there are many pixels, and uses that as a look-up table, stretching out the contrast there.
After contrast-stretching, an over-exposed image which has only a few grey levels occupied will have a histogram that
A poorly-exposed image (either under- or over-exposed) which is contrast-stretched will normally exhibit only a few occupied bins, and they will be equally-spaced across the entire range of grey levels, giving it a `spiky' appearance.
With additive colours, yellow is a mixture of
red and green
- red and cyan
- cyan and red
- blue and green
The additive colour primaries are red, green and blue, ruling out some of the possibilities given. Blue and green combine to give cyan, while red and green (perhaps surprisingly) combine to give yellow.
For an image of unsigned bytes, how can it be contrast-reversed?
255 - 255 = 0 and 255 - 0 = 255, so subtracting from 255 does this.
What is plotted along the abscissa (x-axis) of a histogram?
grey level
- mean value
- standard deviation
- number of occurrences
The x-axis of a histogram plots the grey level; the y-axis plots the number of occurrences of that grey level.
In the HSV colour space, the complementary colour of green is:
The way to find this is to look at the colour wheel and draw a line across it from green -- you will find that the colour "opposite" it across the wheel is magenta.