diff options
Diffstat (limited to 'src/itrans-threshold.c')
-rw-r--r-- | src/itrans-threshold.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/itrans-threshold.c b/src/itrans-threshold.c index 17a2cbe..87a461f 100644 --- a/src/itrans-threshold.c +++ b/src/itrans-threshold.c @@ -45,7 +45,7 @@ ImageFeatureList *itrans_peaksearch_threshold(ImageRecord *imagerecord, ControlC assert(y<height); assert(x>=0); assert(y>=0); - image_add_feature(flist, (x-imagerecord->x_centre), (y-imagerecord->y_centre), imagerecord, image[x + width*y]); + image_add_feature(flist, x, y, imagerecord, image[x + width*y]); } } } @@ -100,7 +100,7 @@ ImageFeatureList *itrans_peaksearch_adaptive_threshold(ImageRecord *imagerecord, assert(max_y<height); assert(max_x>=0); assert(max_y>=0); - image_add_feature(flist, (x-imagerecord->x_centre), (y-imagerecord->y_centre), imagerecord, image[x + width*y]); + image_add_feature(flist, x, y, imagerecord, image[x + width*y]); /* Remove it and its surroundings */ for ( y=((max_y-10>0)?max_y-10:0); y<((max_y+10)<height?max_y+10:height); y++ ) { |