aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-06-02 17:20:11 +0200
committerThomas White <taw@physics.org>2010-06-02 17:20:11 +0200
commit4cc93cb75f051b2f0a9e1d78fce3b6217d12849d (patch)
tree865e3f6620226adeadcb6042ce0c340c4a2f0322 /src
parent891dc55c60e7270876ba8aea741e930273781e9f (diff)
Just use memcpy() instead of looping
Diffstat (limited to 'src')
-rw-r--r--src/indexamajig.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/src/indexamajig.c b/src/indexamajig.c
index 6cf9cd15..0320f44d 100644
--- a/src/indexamajig.c
+++ b/src/indexamajig.c
@@ -291,17 +291,7 @@ static void *process_image(void *pargsv)
if ( config_noisefilter ) {
filter_noise(&image, data_for_measurement);
} else {
-
- int x, y;
-
- for ( x=0; x<image.width; x++ ) {
- for ( y=0; y<image.height; y++ ) {
- float val;
- val = image.data[x+image.width*y];
- data_for_measurement[x+image.width*y] = val;
- }
- }
-
+ memcpy(data_for_measurement, image.data, data_size);
}
/* Perform 'fine' peak search */