lmrcImageCentre(API)
From EosPedia
DataManip/mrcImage/src/lmrcImageCentre is API for calculating the center of gravity of the image. It is used by mrcImageCenterOfMassCalculate.
Contents
constant
struct
Setting data for this API
typedef struct lmrcImageCenterOfMass { float x; float y; float z; } lmrcImageCenterOfMass;
API
Calculation of center of gravity
Calculate center of gravity of the image, and it stores coordinates to centerOfMass.
extern void lmrcImageCenterOfMassCalculate(lmrcImageCenterOfMass *centerOfMass,mrcImage in1);
Move to center of gravity
Move so that origin is center of gravity.
extern void lmrcImageShiftCenterOfMassIntoImageCenter(mrcImage* out, mrcImage* in, mrcPixelDataHowToGet mode);