arthropod_describer.plugins.profile_register.general package
Submodules
arthropod_describer.plugins.profile_register.general.profile_registering module
- class ProfileFusion(info: Optional[Info] = None)[source]
Bases:
GeneralAction
NAME: Profile fusion DESCRIPTION: Fuse body profiles based on their tags. A median profile is created for each group of images that matches the given tags. (how to specify and use the tags must be found)
- USER_PARAMS:
PARAM_NAME: Iteration tag PARAM_KEY: iteration_tags PARAM_SOURCE: Storage PARAM_SOURCE_FIELD: tag_prefixes PARAM_VALUE_CARDINALITY: SingleValue
PARAM_NAME: Model group tags PARAM_KEY: model_group_tags PARAM_SOURCE: Storage PARAM_SOURCE_FIELD: tag_prefixes PARAM_VALUE_CARDINALITY: MultiValue
PARAM_NAME: Mimic group tags PARAM_KEY: mimic_group_tags PARAM_SOURCE: Storage PARAM_SOURCE_FIELD: tag_prefixes PARAM_VALUE_CARDINALITY: MultiValue
PARAM_NAME: Delete existing xlsx files PARAM_KEY: delete_existing_xlsx PARAM_TYPE: BOOL DEFAULT_VALUE: FALSE
arthropod_describer.plugins.profile_register.general.profiles module
- get_median_profile(profiles, show_fig=False, fig_name=None)[source]
Create a median profile from given profiles :param profiles: 2D numpy array, where the individual profiles are rows :param show_fig: indicates whether to show figure or not :param fig_name: optional name of output file for saving plots :return: Median profile (1D numpy array) obtained after registration of the input profiles
- merge_profiles(model, reference, x_weight=0.5, y_weight=0.5, show_matches=False, fig_name=None)[source]
Register the given profiles and merge them into one with their relative influence given by weights. :param model: model profile :param reference: reference profile :param x_weight: number in range 0-1 (0 => x-coordinates moved to reference, 1 => x-coordinates moved to model) :param y_weight: number in range 0-1 (0 => y-values taken from reference, 1 => y-values taken from model) :param show_matches: if True the function shows found matches as a plot :param fig_name: filename for saving plots :return: merged profile