src package

Submodules

src.image_handling module

src.image_handling.exp(array, file)

Exports an a numpy array and saves it as the file indicated.

Parameters
  • array (ndarray) – a three dimesional numpy array representing the image

  • file (string) – file path

src.image_handling.imp(file)

Imports an image as a numpy array.

Parameters

file (string) – file path

Returns

a three dimesional numpy array representing the image

Return type

ndarray

src.image_handling.score(old, new)

Scores two images of same dimensions on similarity from 0 to 255. The smaller the score the more similar they are.

Parameters
  • old – a three dimesional numpy array representing the image

  • new – a three dimesional numpy array representing the image

Returns

score from 0 to 255

Return type

double

Module contents