Difference between revisions of "lmrcSinogramFET(API)"
From EosPedia
(Created page with "DataManip/mrcImage/src/'''lmrcSinogramFET''' is API for SinogramFET. It is used by mrcSinogramFET. == constant == Number of kind of feature value #define NumOfFeature 3...") |
|||
| Line 1: | Line 1: | ||
| − | DataManip/mrcImage/src/'''lmrcSinogramFET''' is API for | + | DataManip/mrcImage/src/'''lmrcSinogramFET''' is API for Sinogram Features. It is used by [[mrcSinogramFET]]. |
== constant == | == constant == | ||
| Line 22: | Line 22: | ||
}lmrcSinogramFETInfo; | }lmrcSinogramFETInfo; | ||
| − | lmrcSinogramFETPCASetting | + | For lmrcSinogramFETPCASetting |
typedef struct lmrcSinogramFETPCAInfo{ | typedef struct lmrcSinogramFETPCAInfo{ | ||
FILE* inList; | FILE* inList; | ||
| Line 38: | Line 38: | ||
== API == | == API == | ||
| − | === | + | ===Calculation of Sinogram Features=== |
| − | + | Calculate Sinogram feature value. | |
extern void lmrcSinogramFET(mrcImage* in, mrcImage* out, lmrcSinogramFETInfo info, int mode); | extern void lmrcSinogramFET(mrcImage* in, mrcImage* out, lmrcSinogramFETInfo info, int mode); | ||
| − | === | + | ===Cut out line=== |
| − | + | Cut out data in Sinogram for calculation of Features.<br> | |
| − | + | Cut out only data that is above value depending on mean for each θ. | |
extern void lmrcSinogramFETcutout(mrcImage* in, mrcImage* out, int mode); | extern void lmrcSinogramFETcutout(mrcImage* in, mrcImage* out, int mode); | ||
| − | === | + | ===Smoothing=== |
| − | + | Perform smoothing to calculated Features. | |
extern void sinogramFETsmoothing(mrcImage* in, mrcImage* out, int sm, int mode); | extern void sinogramFETsmoothing(mrcImage* in, mrcImage* out, int sm, int mode); | ||
| − | === | + | ===Normalize=== |
| − | + | Normalize each Feature at using mean. | |
extern void lmrcSinogramFETc(mrcImage* out, mrcImage* OutC, int mode); | extern void lmrcSinogramFETc(mrcImage* out, mrcImage* OutC, int mode); | ||
| − | + | Normalize each Feature as minimum value is 0. | |
extern void lmrcSinogramFETminimam_Zero(mrcImage* in, mrcImage* out, int mode); | extern void lmrcSinogramFETminimam_Zero(mrcImage* in, mrcImage* out, int mode); | ||
===Principal Component Analysis=== | ===Principal Component Analysis=== | ||
extern void lmrcSinogramFETPCA(lmrcSinogramFETPCAInfo in, int mode); | extern void lmrcSinogramFETPCA(lmrcSinogramFETPCAInfo in, int mode); | ||
Latest revision as of 00:50, 5 September 2014
DataManip/mrcImage/src/lmrcSinogramFET is API for Sinogram Features. It is used by mrcSinogramFET.
Contents
constant
Number of kind of feature value
#define NumOfFeature 3
Width
#define FETwidth 0
#define FETasymmetry 1
#define FETkur 2
struct
For lmrcSinogramFETSetting
typedef struct lmrcSinogramFETInfo {
int flagOutC;
mrcImage* OutC;
int flagsm;
int sm;
int outmode; // 1: ordinary 8 features 0: new 3 features
int mode;
}lmrcSinogramFETInfo;
For lmrcSinogramFETPCASetting
typedef struct lmrcSinogramFETPCAInfo{
FILE* inList;
int flagInImage;
mrcImage* inImage;
Array X;
Array Ave;
Array C;
Array u;
Array lambda;
Array fetpcad;
FILE* Out;
int mode;
}lmrcSinogramFETPCAInfo;
API
Calculation of Sinogram Features
Calculate Sinogram feature value.
extern void lmrcSinogramFET(mrcImage* in, mrcImage* out, lmrcSinogramFETInfo info, int mode);
Cut out line
Cut out data in Sinogram for calculation of Features.
Cut out only data that is above value depending on mean for each θ.
extern void lmrcSinogramFETcutout(mrcImage* in, mrcImage* out, int mode);
Smoothing
Perform smoothing to calculated Features.
extern void sinogramFETsmoothing(mrcImage* in, mrcImage* out, int sm, int mode);
Normalize
Normalize each Feature at using mean.
extern void lmrcSinogramFETc(mrcImage* out, mrcImage* OutC, int mode);
Normalize each Feature as minimum value is 0.
extern void lmrcSinogramFETminimam_Zero(mrcImage* in, mrcImage* out, int mode);
Principal Component Analysis
extern void lmrcSinogramFETPCA(lmrcSinogramFETPCAInfo in, int mode);