OSDN Git Service

Merge branch 'master' of git.sourceforge.jp:/gitroot/eos/base
[eos/hostdependX86LINUX64.git] / include / lmrcImageROI2D.h
1 /*
2 # %M% %Y% %I%
3 # The latest update : %G% at %U%
4 #
5 #%Z% lmrcImageROI2D.h ver %I%
6 #%Z% Created by 
7 #%Z%
8 #%Z% Usage : lmrcImageROI2D.h 
9 #%Z% Attention
10 #%Z%
11 */
12
13 #ifndef  LMRC_IMAGE_ROI2D_H 
14 #define  LMRC_IMAGE_ROI2D_H
15
16 #include "mrcImage.h"
17
18 /* struct begin */
19 typedef enum lmrcImageROIShape {
20     Rect   =0,
21     Rect2  =1,
22     Circle =2,
23         Line   =3
24 } lmrcImageROIShape;
25
26 typedef struct lmrcImageSingleROIInfo {
27     char* FileName;
28     lmrcImageROIShape Shape;
29     float centerx;     /* For All Shape */
30     float centery;     
31     float blx;         /* For Rect, Rect2, Circle */
32     float bly;
33     float brx;
34     float bry;
35     float trx;
36     float try;
37     float tlx;
38     float tly;
39         float startx;      /* For Line */
40         float starty;
41         float endx; 
42         float endy;
43
44         /* For Post Modification */
45     int flagWidth;     /* For Rect, Rect2, Circle, Line */
46     float width;
47     int flagHeight;    /* For Rect, Rect2, Circle */
48     float height; 
49
50     float radius;
51     int mode;
52
53         int flagRotation;
54         float angle;
55
56         int flagMagnifiedWidth;
57         float magnifiedWidth;
58
59         int flagMagnifiedHeight;
60         float magnifiedHeight;
61
62         /* For Layer Line Information */
63         int flagLayerLine;
64         float truePitch;
65         float Ly;
66         float dY;
67 } lmrcImageSingleROIInfo;
68
69 typedef struct lmrcImageROIsInfo {
70     lmrcImageSingleROIInfo* ROI;
71     int                numROI;
72 } lmrcImageROIsInfo;
73 /* struct end */
74
75 /* prototype begin */
76 extern void lmrcImageROIsInformationGet(FILE* fpt, lmrcImageROIsInfo* linfo); 
77 extern void lmrcImageSingleROI(mrcImage* out, mrcImage* in, lmrcImageSingleROIInfo* linfo, int mode);
78 /* prototype end */
79
80 #endif
81
82