「lmrcImageROI2D(API)」の版間の差分
提供: Eospedia
(ページの作成:「DataManip/mrcImage/src/'''lmrcImageROI2D'''はROIファイル(2D)切り出しのためのAPI です。主にmrcImageROI、mrcImageROIsで使用していますが...」) |
(相違点なし)
|
2014年5月12日 (月) 08:15時点における版
DataManip/mrcImage/src/lmrcImageROI2DはROIファイル(2D)切り出しのためのAPI です。主にmrcImageROI、mrcImageROIsで使用していますが、mrcImageAutoRotationCorrelationなど計算で一部のデータが必要な際にも使用します。
定数
構造体
typedef enum lmrcImageROIShape {
Rect =0,
Rect2 =1,
Circle =2,
Line =3
} lmrcImageROIShape;
typedef struct lmrcImageSingleROIInfo {
char* FileName;
lmrcImageROIShape Shape;
float centerx; /* For All Shape */
float centery;
float blx; /* For Rect, Rect2, Circle */
float bly;
float brx;
float bry;
float trx;
float try;
float tlx;
float tly;
float startx; /* For Line */
float starty;
float endx;
float endy;
/* For Post Modification */
int flagWidth; /* For Rect, Rect2, Circle, Line */
float width;
int flagHeight; /* For Rect, Rect2, Circle */
float height;
float radius;
int mode;
int flagRotation;
float angle;
int flagMagnifiedWidth;
float magnifiedWidth;
int flagMagnifiedHeight;
float magnifiedHeight;
int flagNonPeriodic;
/* For Layer Line Information */
int flagLayerLine;
float truePitch;
float Ly;
float dY;
} lmrcImageSingleROIInfo;
typedef struct lmrcImageROIsInfo {
lmrcImageSingleROIInfo* ROI;
int numROI;
} lmrcImageROIsInfo;
API
extern void lmrcImageROIsInformationGet(FILE* fpt, lmrcImageROIsInfo* linfo); extern void lmrcImageSingleROI(mrcImage* out, mrcImage* in, lmrcImageSingleROIInfo* linfo, int mode);