aboutsummaryrefslogtreecommitdiff
path: root/src/itrans-threshold.c
diff options
context:
space:
mode:
authortaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-28 21:39:35 +0000
committertaw27 <taw27@bf6ca9ba-c028-0410-8290-897cf20841d1>2007-08-28 21:39:35 +0000
commit50a75cc5458ba553f5cdcede6c9699f7a0347377 (patch)
tree993e70c4dc75885a3f207ba79b71a22c4d3aee66 /src/itrans-threshold.c
parent85b8978beedd0142560573a92442a5ed907b0ed2 (diff)
Use unsigned types for image storage
git-svn-id: svn://cook.msm.cam.ac.uk:745/diff-tomo/dtr@82 bf6ca9ba-c028-0410-8290-897cf20841d1
Diffstat (limited to 'src/itrans-threshold.c')
-rw-r--r--src/itrans-threshold.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/itrans-threshold.c b/src/itrans-threshold.c
index 6aadea2..1aee5ca 100644
--- a/src/itrans-threshold.c
+++ b/src/itrans-threshold.c
@@ -24,12 +24,12 @@ unsigned int itrans_peaksearch_threshold(ImageRecord imagerecord, ControlContext
int width, height;
int x, y;
unsigned int n_reflections = 0;
- int16_t *image = imagerecord.image;
+ uint16_t *image = imagerecord.image;
double tilt_degrees = imagerecord.tilt;
width = imagerecord.width;
height = imagerecord.height;
-
+
/* Simple Thresholding */
for ( y=0; y<height; y++ ) {
for ( x=0; x<width; x++ ) {
@@ -53,10 +53,10 @@ unsigned int itrans_peaksearch_threshold(ImageRecord imagerecord, ControlContext
unsigned int itrans_peaksearch_adaptive_threshold(ImageRecord imagerecord, ControlContext *ctx) {
- int16_t max_val = 0;
+ uint16_t max_val = 0;
int width, height;
unsigned int n_reflections = 0;
- int16_t *image = imagerecord.image;
+ uint16_t *image = imagerecord.image;
double tilt_degrees = imagerecord.tilt;
width = imagerecord.width;