class point(int x, int y){

int x;
int y;
}

std:vector <point> v;

class FlatSE() {

FlatSE(int r){new FlatSE; this.makeBall®;}

void makeBall(int r){

for (int x=-r;x=<r;x++)
{	
	for (int y=-r;y=<r;y++)
	{	
		if (x*x+y*y<r*r) v.push_back(new point(x,y);
	}
}

}

}

joe = new FlatSE(0); joe.push_back1); joe.push_back2); joe.push_back3); joe.push_back4);

CImg<unsigned char> erode(CImg<unsigned char> im, FlatSE se) { }

CImg<unsigned char> dilate(CImg<unsigned char> im, FlatSE se)

1) -1,0
2) 1,0
3) 0,-1
4) 0,1

 
java/morph.txt · Dernière modification: 2010/03/24 12:21 par suitable