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 :

dic : dict

Dictionary of NMRPipe parameters.

data : ndarray

Array of NMR data.

filter : {‘median’, ‘min’, ‘max’, ‘amin’, ‘amax’, ‘range’, ‘avg’, ‘dev’}

Image processing filter to apply. See table below for descriptions.

dx : float

Filter width along X-axis in points.

dy : float

Filter width along Y-axis in points.

kern : list

List of convolution filter kernel values, only used when conv is True.

conv : bool

True to apply convolution filter with kernel of kern.

thres : float 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 :

ndic : dict

Dictionary of updated NMRPipe parameters.

ndata : ndarray

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

Previous topic

nmrglue.process.pipe_proc.dev

Next topic

nmrglue.process.pipe_proc.null

This Page