Example Python Code snippets
Using the Python libraries, OpenCV, NumPy and Matplotlib, the code does the following:
First it takes one image, calculates the minimum, maximum and average intensties of the image. This is then repeated but the image has now been greyscaled and then normalised. Histograms are then calculated for both images and are displayed side by side.
Below shows both the statistical analysis and the plotted histograms.
Simple Python algorithm that uses the NumPy library to invert a matrix
Input and Output shown below.