nmrglue.process.pipe_proc.img¶
-
nmrglue.process.pipe_proc.
img
(dic, data, filter, dx=1.0, dy=1.0, kern=[1], conv=False, thres=None)[source]¶ Image processing utilities
- Parameters
- dicdict
Dictionary of NMRPipe parameters.
- datandarray
Array of NMR data.
- filter{‘median’, ‘min’, ‘max’, ‘amin’, ‘amax’, ‘range’, ‘avg’, ‘dev’}
Image processing filter to apply. See table below for descriptions.
- dxfloat
Filter width along X-axis in points.
- dyfloat
Filter width along Y-axis in points.
- kernlist
List of convolution filter kernel values, only used when conv is True.
- convbool
True to apply convolution filter with kernel of kern.
- thresfloat or None or True
Threshold value. Only points above this value will have the filter applied. None turns thresholding off and the filter will be applied to all points. True will set a threshold value of 0.
- Returns
- ndicdict
Dictionary of updated NMRPipe parameters.
- ndatandarray
Imaged processed array of NMR data.
Notes
This function wraps when regions extend past the edges (NMRPipe doesn’t). The filter is applied to both the real and imaginary channels
Supported filters are:
Name
Description
median
Median
min
Minimum
max
Maximim
amin
Absolute Minimum
amax
Absolute Maximum
range
Range
avg
Average
dev
Standard Deviation