lmrcImageShapePCA(API)

From EosPedia
Jump to: navigation, search

DataManip/mrcImage/src/lmrcImageShapePCA is API for Principal Component Analysis for image data. It is used by mrcImageShapePCA.

constant

struct

Store Input and Output data of lmrcImageShapePCA.

typedef struct lmrcImageShapePCAInfo {
        /* Input */
        int nLevel;
        float* Level;

        /* Output */
        Array C;
        Array u;
        Array Lambda;
        Array Average;
} lmrcImageShapePCAInfo;

API

Principal Component Analysis

Perform Principal Component Analysis for image data.

extern int lmrcImageShapePCA(mrcImage* in, lmrcImageShapePCAInfo* linfo, int mode);
メンバー Input/Output Description
nLevel Input number of Contour level
Level Input Contour level(Reference value at Principal Component Analysis)
C Output Covariance of Coordinates Information by Principal Component Analysis
u Output Eigenvector of each component
Lambda Output Eigenvalue of each component
Average Output Average coordinates of each component


Output result

extern int lmrcImageShapePCAResultsPrint(FILE* fpt, lmrcImageShapePCAInfo* linfo, int mode);