lmrcImageCentre(API)
提供: Eospedia
DataManip/mrcImage/src/lmrcImageCentreは画像の重心を算出するためのAPI です。mrcImageCenterOfMassCalculateなどで使用されています。
定数
構造体
このAPIで使用する設定データ
typedef struct lmrcImageCenterOfMass { float x; float y; float z; } lmrcImageCenterOfMass;
API
重心の算出
画像から重心を算出し、centerOfMassへ座標を格納します。
extern void lmrcImageCenterOfMassCalculate(lmrcImageCenterOfMass *centerOfMass,mrcImage in1);
重心へ移動
画像の原点が重心になるように移動します。
extern void lmrcImageShiftCenterOfMassIntoImageCenter(mrcImage* out, mrcImage* in, mrcPixelDataHowToGet mode);