Analysis Functions#

This page documents functions for data analysis and quality metrics.

Strain Analysis#

Phase Analysis#

Resolution & Quality#

Statistics#

Facet Analysis#

Facet analysis package for BCDI reconstructions.

class cdiutils.facetanalysis.FacetAnalysisProcessor(params, support_method, dump_dir, support_path=None)[source]#

A class to bundle all functions needed to determine the surface, the support, and anylyse the facets.

__init__(params, support_method, dump_dir, support_path=None)[source]#
check_previous_data()[source]#

If one of these parameters (authorised_index, top_facet_reference_index, remove_edges or nb_nghbs_min) has changed since the previous run, this method deletes the files affected.

def_smooth_supp_dir()[source]#

Determine a smooth surface normal direction at each surface voxel from the given support.

find_edges(smooth_dir)[source]#
def_list_facet_analysis(smooth_dir, edges=None)[source]#
def_label(cluster_list, cluster_pos, edges=None)[source]#
distance_clustering(pos_a, pos_b, dir_a, dir_b)[source]#
clustering(smooth_dir, label)[source]#
def_edge_corner(facet_label)[source]#
def_smooth_dir_facet_edge_corner(smooth_dir, facet_label, edge_label, corner_label)[source]#
def_index(smooth_dir_f, smooth_dir_e, smooth_dir_c, facet_label, edge_label, corner_label, nb_edges)[source]#
def_mean_strain(strain, facet_label, edge_label, corner_label)[source]#
visualisation(facet_label_index, edge_label_index, corner_label_index, facet_label, edge_label, corner_label)[source]#
facet_analysis()[source]#