arthropod_describer.plugins.test_plugin.properties package

Submodules

arthropod_describer.plugins.test_plugin.properties.area module

class Area(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Area DESCRIPTION: Area of the region (px or mm²) KEY: area

USER_PARAMS:

PARAM_NAME: Magic number PARAM_TYPE: INT PARAM_KEY: magic_number VALUE: 42 MIN_VALUE: 40 MAX_VALUE: 45

PARAM_NAME: Magic word PARAM_TYPE: STR PARAM_KEY: magic_word VALUE: please

PARAM_NAME: Yes/No PARAM_TYPE: BOOL PARAM_KEY: magic_bool VALUE: True

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.basic_props module

class BasicProperties(info: Optional[Info] = None)[source]

Bases: object

NAME: Basic properties DESCRIPTION: Computes basic region properties.

REGION_RESTRICTED

USER_PARAMS:

PARAM_NAME: ABC PARAM_KEY: abc PARAM_TYPE: INT VALUE: 10 MIN_VALUE: 5 MAX_VALUE: 25

property computes: Dict[str, Info]
example(prop_key: str) RegionProperty[source]
target_worksheet(prop_key: str) str[source]

arthropod_describer.plugins.test_plugin.properties.circularity module

class Circularity(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Circularity DESCRIPTION: Circularity (0.0 to 1.0, where 1.0 = perfect circle) KEY: circularity

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.geodesic_length module

class GeodesicLength(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Geodesic length DESCRIPTION: Geodesic length (px or mm) KEY: geodesic_length

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.geodesic_length_cpp module

class GeodesicLength(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Geodesic length(cpp) DESCRIPTION: Geodesic length (px or mm) KEY: geodesic_length2

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.geodesic_utils module

compute_longest_geodesic(region: ndarray) Tuple[float, Tuple[int, int], Tuple[int, int]][source]
compute_longest_geodesic_perf(region: ndarray) float[source]
encode_bin_img(bin_img: ndarray) ndarray[source]
find_e(encoded_bin_img: ndarray, e_letter_code: int) ndarray[source]
find_shortest_path(bin_img: ndarray, src: Tuple[int, int], dst: Tuple[int, int]) List[Tuple[int, int]][source]
find_skeleton_endpoints(skeleton: ndarray, e_letter_codes: List[int]) List[Tuple[int, int]][source]
generate_nodes_edges(bin_region: ndarray)[source]
geodesic_distance_for_skeleton(sk: ndarray, src: Tuple[int, int]) ndarray[source]
get_graph(bin_region: ndarray) Graph[source]
get_graph2(bin_region: ndarray) Graph[source]
get_longest_geodesic(lab_img: ndarray, label: int) Tuple[List[Tuple[int, int]], float][source]
get_longest_geodesic2(region: ndarray) Tuple[ndarray, float, Tuple[int, int, int, int]][source]
get_node_with_longest_shortest_path(shortest_lengths: Dict[Tuple[int, int], float]) Tuple[int, int][source]
neighbors(p: Tuple[int, int]) Set[Tuple[int, int]][source]

arthropod_describer.plugins.test_plugin.properties.glcm_asm module

class GLCMASM(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: ASM DESCRIPTION: GLCM ASM of the region KEY: ASM

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_contrast module

class GLCMContrast(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: Contrast DESCRIPTION: GLCM contrast of the region KEY: contrast

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_correlation module

class GLCMCorrelation(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: Correlation DESCRIPTION: GLCM correlation of the region KEY: correlation

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_dissimilarity module

class GLCMDissimilarity(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: Dissimilarity DESCRIPTION: GLCM dissimilarity of the region KEY: dissimilarity

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_energy module

class GLCMEnergy(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: Energy DESCRIPTION: GLCM energy of the region KEY: energy

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_homogeneity module

class GLCMHomogeneity(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: GLCM properties NAME: Homogeneity DESCRIPTION: GLCM homogeneity of the region KEY: homogeneity

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.glcm_props module

class GLCMProperties(info: Optional[Info] = None)[source]

Bases: object

NAME: GLCM properties DESCRIPTION: Computes properties from grey level co-occurrence matrix.

REGION_RESTRICTED

USER_PARAMS:

PARAM_NAME: ABC PARAM_KEY: abc PARAM_TYPE: INT VALUE: 10 MIN_VALUE: 5 MAX_VALUE: 25

property computes: Dict[str, Info]
example(prop_key: str) RegionProperty[source]
target_worksheet(prop_key: str) str[source]

arthropod_describer.plugins.test_plugin.properties.max_feret module

class MaxFeret(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Max feret diameter DESCRIPTION: Maximum Feret diameter (px or mm) KEY: max_feret

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.mean_hsv module

class MeanHSV(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Mean HSV DESCRIPTION: Mean HSV of a region KEY: mean_hsv

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.mean_intensity module

class MeanIntensity(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Mean intensity DESCRIPTION: Mean intensity (R, G, B) KEY: mean_intensity

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.mean_width module

class MeanWidth(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Mean width DESCRIPTION: Mean width of a region (px or mm) KEY: mean_width

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

arthropod_describer.plugins.test_plugin.properties.mean_width_cpp module

class MeanWidth(info: Optional[Info] = None)[source]

Bases: PropertyComputation

GROUP: Basic properties NAME: Mean width (cpp) DESCRIPTION: Mean width of a region (px or mm) KEY: mean_width_cpp

property computes: Dict[str, Info]
example(prop_name: str) RegionProperty[source]
property group: str
property region_restricted: bool
target_worksheet(prop_name: str) str[source]
property user_params: List[UserParam]

Module contents