stemtool.dpc package¶
Submodules¶
stemtool.dpc.atomic_dpc module¶
stemtool.dpc.dpc_utils module¶
-
class
stemtool.dpc.atomic_dpc.atomic_dpc(Data_4D, Data_ADF, calib_pm, voltage, aperture)[source] Bases:
object-
correct_dpc(imsize=(30, 15))[source]
-
get_cbed(imsize=(15, 15))[source]
-
initial_dpc(imsize=(30, 15))[source]
-
plot_color_dpc(skip=2, portion=7, imsize=(20, 10))[source]
-
show_BF_ADF(imsize=(20, 10))[source]
-
show_charge(imsize=(15, 15))[source]
-
show_potential(imsize=(15, 15))[source]
-
stemtool.dpc.nbed_dpc module¶
-
stemtool.dpc.nbed_dpc.log_sobel(pattern, med_factor=30, gauss_val=3)[source]¶ Take the Log-Sobel of a pattern.
Parameters: - pattern (ndarray) – Image on which Log-Sobel is to be performed
- med_factor (float) – Due to detector noise, some stray pixels may often be brighter than the background. This is used for damping any such pixels. Default is 30
- gauss_val (float) – The standard deviation of the Gaussian filter applied to the logarithm of the CBED pattern. Default is 3
Returns: lsb_pattern – Log-Sobel Filtered pattern
Return type: ndarray
Notes
Generate the Sobel filtered pattern of the logarithm of a dataset. Compared to running the Sobel filter back on a log dataset, this takes care of somethings - notably a Gaussian blur is applied to the image, and Sobel spikes are removed when any values are too higher or lower than the median of the image. This is because real detector images often are very noisy.
See also
nbed.log_sobel4D()