lmrcImageModelCreate(API)
DataManip/mrcImage/src/lmrcImageModelCreate is API for mrcImageModelCreate.
Contents
constant
struct
For setting of these API.
typedef struct _lmrcImageModelCreateMode1Info { float radius; float nHelix; float zPitch; float phiAngle; float deltaPhi; float startZ; float endZ; float startPhi; int flagIn; mrcImage* in; mrcImageDataSetMode inMode; int fm; int units; } _lmrcImageModelCreateMode1Info;
API
Create model image
Triangle and circle
Create triangle(3D: prism) whose size is depending on out->HeaderN, and circle(3D: sphere) by radius.
extern void _lmrcImageModelCreateMode0(mrcImage* out, mrcImageParaTypeReal radius);
Filament model
Create filament with setting info.(out->HeaderN.x, y must be odd)
extern void _lmrcImageModelCreateMode1(mrcImage* out, _lmrcImageModelCreateMode1Info info);
Method of creating filament is depending on units', flagIn, fm.
info's member | units | flagIn | fm | details |
---|---|---|---|---|
値 | 9 | true | 0 | Create 1 line filament by using data of in. |
1 | Create 3 lines filament by using data of in.(on same circumference with using info.radius) | |||
2 | Create 3 lines filament by using data of in.(on same line with using info.radius) | |||
3 | Create 3 lines filament by using data of in.(on different circumference with using info.radius) | |||
false | Add filament whose value is 1 to out. | |||
3 | true | 0 | Create filament that has 5 groups of 3 points for each point by using in data.(as like combine of units=9) (Output is dependent on info.radius, info.zPitch) |
info.flagIn=true is flag, and it means that Input file (as mrcImageModelCreate) exists. Therefore, if info.flagIn=true, input file must set at info.in(mrcImage type).
Points model
Output to left bottom the image that has 3 points whose value is 1.
extern void _lmrcImageModelCreateMode2(mrcImage* out);
It is used for creating filament.
Sphere model
Add to out 3 sphere models whose value is 1.
extern void _lmrcImageModelCreateMode3(mrcImage* out);
Add to out 7 sphere models whose value is 1.
extern void _lmrcImageModelCreateMode4(mrcImage* out);
Add to out 2 sphere projection image models.
extern void _lmrcImageModelCreateMode5(mrcImage* out);
Shepp-Logan model
2D model
extern void _lmrcImageModelCreateSheppLogan2D(mrcImage* out); // Mode: 6
3D model
extern void _lmrcImageModelCreateSheppLogan3D(mrcImage* out); // Mode: 7