lmrcImageWindowing(API)
From EosPedia
DataManip/mrcImage/src/lmrcImageWindowing is API for Windowing to 2D image. It is used by mrcImageWindowing.
Contents
constant
struct
For lmrcImageWindowing
typedef struct lmrcImageWindowingInfo {
long flagWy;
float Wy;
long flagWx;
float Wx;
long flagWyMax;
float WyMax;
long flagWxMax;
float WxMax;
double Offset;
} lmrcImageWindowingInfo;
API
Windowing Function
extern void lmrcImageWindowing(mrcImage* dst, mrcImage* src, lmrcImageWindowingInfo* info, long mode);
Select a preprocess method by higher bit of mode.
| mode&0xf0 | Preprocess |
|---|---|
| 0x00 | As info->Offset is 0. |
| 0x01 | As info->Offset is average value. |
| Otherwise | Not process |
Select how to multiply Window Function by lower bit of mode.
| mode&0xf | Windowing Function |
|---|---|
| 0 | Multiply Cosine Windowing to outer data than 10% edge. |
| 1 | (1-1/Wy)As data at top of image is average value. |
| 2 | Multiply 0 to outer data than WxMax(WyMax)%, and multiply Cosine Windowing to data between WxMax(WyMax)% and Wx(Wy)% . |