「lmrcImageFourierNeighborCorrelation(API)」の版間の差分

提供: Eospedia
移動: 案内検索
(FourierNeighborCorrelation)
(メイン)
 
行46: 行46:
 
=== FourierNeighborCorrelation ===
 
=== FourierNeighborCorrelation ===
 
==== メイン ====
 
==== メイン ====
 +
入力画像inに対し、FourierNeighborCorrelationを行い結果をresに返します。<br>
 
  extern void
 
  extern void
 
  lmrcImageFourierNeighborCorrelation(lmrcImageFourierNeighborCorrelationResult* res,  
 
  lmrcImageFourierNeighborCorrelation(lmrcImageFourierNeighborCorrelationResult* res,  

2015年3月11日 (水) 06:43時点における最新版

DataManip/mrcImage/src/lmrcImageFourierNeighborCorrelationフーリエ空間の冗長性を利用した分解能をチェックするためのAPIです。mrcImageFourierNeighborCorrelationにて使用しています。

定数

typedef enum lmrcImageFourierNeighborCorrelationCentreMode {
	lmrcImageFourierNeighborCorrelationCentreModeCentre = 0,
	lmrcImageFourierNeighborCorrelationCentreModeBottomLeft = 1, 
	lmrcImageFourierNeighborCorrelationCentreModeUseStartN = 2 
} lmrcImageFourierNeighborCorrelationCentreMode; 

構造体

typedef struct lmrcImageFourierNeighborCorrelationInfo {
	lmrcImageFourierNeighborCorrelationCentreMode flagCentre;
	mrcPixelDataHowToGet shiftMode;
	double delta;

	int flagPredictedFSC;
	mrcImage objMask;  // 1: Object
	mrcImage backMask; // 1: Background 
} lmrcImageFourierNeighborCorrelationInfo;
typedef struct lmrcImageFourierNeighborCorrelationResult {
	int     nR;
	double* R;
	double* data;
	int* N;
	double  FNCF;
	double  FNCN;
	double* FNCFs;
	double* FNCNs;
	double* SNR; 
	double* FSC; 

	int flagFSCfull;
	double* FSCfull;

	int flagCref;
	double* Cref;

	int flagNoiseWeighted;
	double  Brestore;
	double* NoiseWeighted;

} lmrcImageFourierNeighborCorrelationResult;

API

FourierNeighborCorrelation

メイン

入力画像inに対し、FourierNeighborCorrelationを行い結果をresに返します。

extern void
lmrcImageFourierNeighborCorrelation(lmrcImageFourierNeighborCorrelationResult* res, 
	mrcImage* in,
	lmrcImageFourierNeighborCorrelationInfo linfo, int mode);

linfo.flagCentreにより中心座標を選択できます。

linfo.flagCentre 説明
lmrcImageFourierNeighborCorrelationCentreModeCentre 中心を画像の中心とする: (Nx/2.0, Ny/2.0, Nz/2.0 )
lmrcImageFourierNeighborCorrelationCentreModeBottomLeft 中心を原点(左下端)とする: (0, 0, 0 )
lmrcImageFourierNeighborCorrelationCentreModeUseStartN 中心を画像のStartNとする: (StartNx,StartNy,StartNz)


ファイル出力

extern void
lmrcImageFourierNeighborCorrelationPrint(FILE* fpt,
	lmrcImageFourierNeighborCorrelationResult* res, 
	lmrcImageFourierNeighborCorrelationInfo linfo, int mode);

API情報

モード説明を出力

extern void
lmrcImageFourierNeighborCorrelationPrintCentreMode(FILE* fpt);