Difference between revisions of "lmrcImageCentre(API)"

From EosPedia
Jump to: navigation, search
(Created page with "DataManip/mrcImage/src/'''lmrcImageCentre''' is API for calculating the center of gravity of the image. It is used by mrcImageCenterOfMassCalculate. == constant == == s...")
 
(No difference)

Latest revision as of 00:53, 1 September 2014

DataManip/mrcImage/src/lmrcImageCentre is API for calculating the center of gravity of the image. It is used by mrcImageCenterOfMassCalculate.

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);