Manipulate images represented by a numpy.ndarray of BGR colors.
Example
>>> # explicit constructor to create an image
>>> img1 = sppasImage(shape=(3,))
>>> # read the image from a file
>>> img2 = sppasImage(filename=os.path.join("some image file"))
>>> # construct from an existing ndarray
>>> img3 = sppasImage(input_array=img1)
>>> # construct a blank image
>>> black = sppasImage(0).blank(w=100, h=100, white=False)
An image of width=320 and height=200 is represented by len(img)=200;
each of these 200 rows contains 320 lists of [b,g,r] values.
Important:
When the image file is read with the OpenCV function imread(),
the order of colors is BGR (blue, green, red), and the same with
imwrite. This class is then using BGR colors in a ndarray.
It ignores alpha values even if specified in the original image.