niprov.camera module¶
-
class
niprov.camera.Camera(dependencies)¶ Bases:
object-
saveSnapshot(data, for_)¶ Plot an overview of the image and store it.
- Uses
PictureCacheas service that provides a file-like - handle to save the plotted picture to.
Calls takeSnapshot() to do the actual plotting.
Parameters: data (numpy.ndarray) – Array of 2, 3 or 4 dimensions with image data. - Uses
-
takeSnapshot(data, on)¶ Plot an overview of the image using matplotlib.pyplot.
Parameters: - data (numpy.ndarray) – Array of 2, 3 or 4 dimensions with image data.
- on (str or file-like object) – Where to save figure to.
-