lmrcImageMorphology(API)

提供: Eospedia
2015年3月11日 (水) 08:12時点におけるKinoshita (トーク | 投稿記録)による版

移動: 案内検索

DataManip/mrcImage/src/lmrcImageMorphologyはモルフォロジー処理のためのAPI です。

定数

構造体

typedef struct lmrcImageMorphologyInfo {
	mrcImage SE; /* Structuring Elements */  

	/* for SE*/
	int n;      /* for Any size */ 
	int nx;
	int ny;
	int nz;
	int radius; /* for Disk*/

	/* SE feature */
	int mode;
} lmrcImageMorphologyInfo;

API

モルフォロジー(lmrcImageMorphology)

メイン

void lmrcImageMorphologyStructuringElementSet(lmrcImageMorphologyInfo* linfo, int mode);

linfo->modeによって処理を選択できます。

linfo->mode 処理
0 lmrcImageMorphologyStructuringElement2DCross
1 lmrcImageMorphologyStructuringElement2DSquare
2 lmrcImageMorphologyStructuringElement2DDisk
3 lmrcImageMorphologyStructuringElement3DCross
4 lmrcImageMorphologyStructuringElement3DCubic
5 lmrcImageMorphologyStructuringElement3DSphere
6 lmrcImageMorphologyStructuringElement2DRectangle
7 lmrcImageMorphologyStructuringElement3DCuboid
8 lmrcImageMorphologyStructuringElement3DCylinder


2D

Cross3x3

void lmrcImageMorphologyStructuringElement2DCross(mrcImage* out, int mode);

Square3x3

void lmrcImageMorphologyStructuringElement2DSquare(mrcImage* out, int mode);

Disk

void lmrcImageMorphologyStructuringElement2DDisk(mrcImage* out, int r, int n, int mode);

Rectangle

void lmrcImageMorphologyStructuringElement2DRectangle(mrcImage* out, int nx, int ny, int mode);

3D

Cross3x3x3

void lmrcImageMorphologyStructuringElement3DCross(mrcImage* out, int mode);

Cubic3x3x3

void lmrcImageMorphologyStructuringElement3DCubic(mrcImage* out, int mode);

Sphere

void lmrcImageMorphologyStructuringElement3DSphere(mrcImage* out, int r, int n, int mode);
void lmrcImageMorphologyStructuringElementSphere(mrcImage* out, int r, int nx, int ny, int nz, int mode);

Cuboid

void lmrcImageMorphologyStructuringElement3DCuboid(mrcImage* out, int nx, int ny, int nz, int mode);

Cylinder

void lmrcImageMorphologyStructuringElement3DCylinder(mrcImage* out, int r, int nx, int ny, int nz, int mode);

縮退(lmrcImageErosion)

void lmrcImageErosion(mrcImage* dst, mrcImage* src, lmrcImageMorphologyInfo linfo, int mode);

膨張(lmrcImageDilation)

void lmrcImageDilation(mrcImage* dst, mrcImage* src, lmrcImageMorphologyInfo linfo, int mode);

オープニング(lmrcImageOpening)

void lmrcImageOpening(mrcImage* dst, mrcImage* src, lmrcImageMorphologyInfo linfo, int times, int mode);

クロージング(lmrcImageClosing)

void lmrcImageClosing(mrcImage* dst, mrcImage* src, lmrcImageMorphologyInfo linfo, int times, int mode);

API情報

モード説明を出力

void lmrcImageMorphologyStructuringElementSetInfoPrint(FILE* fpt);