fluidimage.util.util#
Miscellaneous utilities#
Provides:
- fluidimage.util.util.imread(path)[source]#
Flatten image as a single gray-scale layer and loads as a numpy floating point array.
- fluidimage.util.util.print_memory_usage(string='Memory usage', color='OKGREEN')[source]#
Print the memory usage.
Functions
|
Print with terminal colors. |
|
Return a coloured string. |
|
return a formatted str of the duration |
|
|
|
Flatten image as a single gray-scale layer and loads as a numpy floating point array. |
|
Alternative implementation of scipy.misc.imsave function. |
Checks if available system virtual memory is nearly saturated. |
|
|
Print the memory usage. |
|
Save eval with simpleeval |
|
Give a short str for classes, function, etc. |