Name

sxhac_averages.py - Calculate class averages according the dendogram file given by sxhac_clustering.py

Usage

Usage in comman lines:

sxhac_averages.py stack dendoname.dendo averages_name --K=number_of_groups

Usage in python programming:

HAC_averages(stack, dendoname.dendo, averages_name, K)

Examples:

sxhac_averages.py data.hdf dendo.dendo ave_K15.hdf --K=15

Input

stack
the input stack of images
dendoname.dendo
dendogram file given by the function sxhac_clustering
  • The parameters preceded with -- are optional and default values are given in parenthesis.

  • K
    number of class averages desired (default set to 2)

    Output

    averages_name
    stack name to store the class averages

    Description

    The program compute the class averages from a dendogram structure. Before use this function you need the dendoname.dendo file given by the function sxhac_clustering. The number of class averages must be selected according the file dendoname.txt again given by sxhac_clustering.

    The averages have the following attributes set:

    Reference

    Author / Maintainer

    Julien Bert

    Keywords

    category 1
    APPLICATIONS

    Files

    applications.py

    See also

    sxhac_clustering

    Maturity

    beta
    works for author, often works for others.

    Bugs

    None. It is perfect.

    sxhac_averages (last edited 2013-07-01 13:12:43 by localhost)