OSDN Git Service

mrcImageSN: Add trimedAVG/Median
[eos/base.git] / include / lmrcImageMasking.h
1 /*
2 # %M% %Y% %I%
3 # The latest update : %G% at %U%
4 #
5 #%Z% lmrcImageMasking ver %I%
6 #%Z% Created by 
7 #%Z%
8 #%Z% Usage : lmrcImageMasking
9 #%Z% Attention
10 #%Z%
11 */
12
13 #ifndef  LMRC_IMAGE_MASKING_H 
14 #define  LMRC_IMAGE_MASKING_H
15
16 #undef DEBUG
17 #include "genUtil.h"
18 #include "mrcImage.h"
19
20 /* struct begin */
21 typedef enum lmrcImageMaskingInfoShape {
22         lmrcImageMaskingInfoShapeSphere=0,
23         lmrcImageMaskingInfoSquare=1,
24         lmrcImageMaskingInfoCylinder=2,
25         lmrcImageMaskingInfoRoundedSquare=3,
26         lmrcImageMaskingInfoCone=4,
27         lmrcImageMaskingInfoSquareCone=5,
28         lmrcImageMaskingInfoRoundedSquareCone=6,
29         lmrcImageMaskingInfoSquareConePlatform=7,
30         lmrcImageMaskingInfoRoundedSquareConePlatform=8
31 } lmrcImageMaskingInfoShape;
32
33 typedef struct lmrcImageMaskingInfo {
34         mrcImageParaTypeRealCoord n;
35         mrcImageParaTypeRealCoord c;
36         
37                 // 
38                 int flagRotation;
39                 char Euler[4];
40                 mrcImageParaTypeReal Rot1; 
41                 mrcImageParaTypeReal Rot2; 
42                 mrcImageParaTypeReal Rot3;  
43
44                 //
45         lmrcImageMaskingInfoShape shape;
46         long mode;
47 } lmrcImageMaskingInfo;
48
49 /* struct end */
50
51 /* prototype begin */
52 extern void lmrcImageMasking(mrcImage* out, mrcImage* in, lmrcImageMaskingInfo* linfo, int mode);
53 /* prototype end */
54
55 #endif
56
57