imgProcessor package¶
An image processing library based on OpenCV, numpy, scipy and skimage.
It includes (amongst other things) filters, interpolations, camera calibration, feature detectors, signal-to-noise estimations
Subpackages¶
- imgProcessor.camera package
- Submodules
- imgProcessor.camera.CameraCalibration module
- imgProcessor.camera.DarkCurrentMap module
- imgProcessor.camera.FlatFieldFromImgFit module
- imgProcessor.camera.LensDistortion module
- imgProcessor.camera.NoiseLevelFunction module
- imgProcessor.camera.PerspectiveCorrection module
- imgProcessor.camera.flatFieldFromCalibration module
- imgProcessor.equations package
- imgProcessor.features package
- imgProcessor.filters package
- Submodules
- imgProcessor.filters.FourierFilter module
- imgProcessor.filters.edgesFromBoolImg module
- imgProcessor.filters.fastNaNmedianFilter module
- imgProcessor.filters.localizedMaximum module
- imgProcessor.filters.medianThreshold module
- imgProcessor.filters.removeSinglePixels module
- imgProcessor.filters.standardDeviation module
- imgProcessor.interpolate package
- Submodules
- imgProcessor.interpolate.interpolate2dStructuredIDW module
- imgProcessor.interpolate.interpolate2dStructuredPointSpreadIDW module
- imgProcessor.interpolate.interpolate2dUnstructuredIDW module
- imgProcessor.interpolate.interpolateCircular2dStructuredIDW module
- imgProcessor.interpolate.polyfit2d module
- imgProcessor.measure package
- imgProcessor.render package
- imgProcessor.transform package
- imgProcessor.utils package
- Submodules
- imgProcessor.utils.baseClasses module
- imgProcessor.utils.calcAspectRatioFromCorners module
- imgProcessor.utils.decompHomography module
- imgProcessor.utils.genericCameraMatrix module
- imgProcessor.utils.imgPointToWorldCoord module
- imgProcessor.utils.sortCorners module
- imgProcessor.utils.speed_GPU_vs_CPU module
- imgProcessor.utils.webcamTakePhotos module
Submodules¶
imgProcessor.exceptions module¶
imgProcessor.imgIO module¶
various image input/output routines
imgProcessor.signal module¶
-
imgProcessor.signal.
getBackgroundRange
(fitParams)[source]¶ return minimum, average, maximum of the background peak
-
imgProcessor.signal.
getSignalParameters
(fitParams, n_std=3)[source]¶ return minimum, average, maximum of the signal peak
-
imgProcessor.signal.
hasBackground
(fitParams)[source]¶ compare the height of putative bg and signal peak if ratio if too height assume there is no background
-
imgProcessor.signal.
scaleSignal
(img, fitParams=None, backgroundToZero=False, reference=None)[source]¶ scale the image between...
backgroundToZero=True -> 0 (average background) and 1 (maximum signal) backgroundToZero=False -> signal+-3std
reference -> reference image – scale image to fit this one
returns: scaled image
imgProcessor.tests module¶
Run all submodules as __main__ and execute their test procedure
Note there is a bug in pkgutil.walk_packages excluding all modules that have the same name as modules in the standard library, see http://bugs.python.org/issue14787 that’s why ‘os’ and ‘utils’ are not tested at the moment
imgProcessor.transformations module¶
various image transformation functions
-
imgProcessor.transformations.
rot90
(img)[source]¶ rotate one or multiple grayscale or color images 90 degrees
-
imgProcessor.transformations.
toFloatArray
(img)[source]¶ transform an unsigned integer array into a float array of the right size
-
imgProcessor.transformations.
toGray
(img)[source]¶ weights see https://en.wikipedia.org/wiki/Grayscale#Colorimetric_.28luminance-prese http://docs.opencv.org/2.4/modules/imgproc/doc/miscellaneous_transformations.html#cvtcolor
-
imgProcessor.transformations.
toNoUintArray
(arr)[source]¶ cast array to the next higher integer array if dtype=unsigned integer
-
imgProcessor.transformations.
toUIntArray
(img, dtype=None, cutNegative=True, cutHigh=True, range=None, copy=True)[source]¶ transform a float to an unsigned integer array of a fitting dtype adds an offset, to get rid of negative values
range = (min, max) - scale values between given range
cutNegative - all values <0 will be set to 0 cutHigh - set to False to rather scale values to fit