mrcImage dilation, tmp;
lmrcImageMorphologyInfo minfo;
int times;
+ int flagNear;
+
DEBUGPRINT("lmrcImageSoftEdge\n");
out->Header = in->Header;
mrcInit(out, NULL);
do {
lmrcImageDilation(&dilation, &tmp, minfo, 2);
tmp = dilation;
+ times++;
} while(times<=width);
-#ifdef DEBUG
+#ifdef DEBUG2
mrcFileWrite(&dilation, "/tmp/test.dilation", "for test", 0);
mrcFileWrite(&minfo.SE, "/tmp/test.se", "for test", 0);
#endif
//DEBUGPRINT5("%f %f %f: %f %f\n", x, y, z, data0, data);
near = max;
dstData = 0;
+ flagNear=1;
for(tmpWidth=1; tmpWidth<=width; tmpWidth++) {
xmin = MAX(0, x-tmpWidth); xmax = MIN(x+tmpWidth, out->HeaderN.x - 1);
ymin = MAX(0, y-tmpWidth); ymax = MIN(y+tmpWidth, out->HeaderN.y - 1);
neary = offsety;
nearz = offsetz;
dstData = data;
+ flagNear+;
}
}
}
- if(dstData) {
- break;
- }
}
- if(dstData) {
- break;
- }
}
- if(dstData) {
- break;
- }
}
- if(dstData) {
+ if(0<flagNear) {
break;
}
}
@echo "----- Execution Check -----"
../$(OSTYPE)/$(OBJECTNAME) -i data/test.rect -o data/test.rect.edge0 -w 2 -e 0
../$(OSTYPE)/$(OBJECTNAME) -i data/test.rect -o data/test.rect.edge1 -w 2 -e 1
+ @echo "----- Execution Check -----"
+ ../$(OSTYPE)/$(OBJECTNAME) -i data/test.rect -o data/test.rect.edge0-10 -w 10 -e 0
+ ../$(OSTYPE)/$(OBJECTNAME) -i data/test.rect -o data/test.rect.edge1-10 -w 10 -e 1
@echo "----- Calc check -----"
init: