Bilinear interpolator, peak finder, line-profile for images
Bilinear interpolator for images ... or any data on a regular grid
Function f((y, x)) where f is a continuous function made from the image and (y,x)=(row, column) is the pixel coordinates in natural C-order
| Parameters: | x – 2-tuple of float (row, column) | 
|---|---|
| Returns: | Interpolated signal from the image | 
Return the nearest local maximum ... without sub-pixel refinement
| Parameters: | idx – start index (=row*width+column) | 
|---|---|
| Returns: | local maximum index | 
Return the nearest local maximum ... with sub-pixel refinement
| Parameters: | coord – 2-tuple of scalar (row, column) | 
|---|---|
| Returns: | 2-tuple of float with the nearest local maximum | 
Map coordinates of the array on the image
| Parameters: | coordinates – 2-tuple of array of the same size (row_array, column_array) | 
|---|---|
| Returns: | array of values at given coordinates | 
Function -f((y,x)) for peak finding via minimizer.
Gives large number outside the boundaries to return into the image
| Parameters: | x – 2-tuple of float in natural C order, i.e (row, column) | 
|---|---|
| Returns: | Negative interpolated signal from the image | 
Return the intensity profile of an image measured along a scan line.
| Parameters: | 
 | 
|---|---|
| Returns: | The intensity profile along the scan line. The length of the profile is the ceil of the computed length of the scan line. | 
| Return type: | 1d array | 
Inspired from skimage