aboutsummaryrefslogtreecommitdiff
path: root/src/render.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-01-08 18:23:30 +0100
committerThomas White <taw@physics.org>2010-01-08 18:23:30 +0100
commit419d5533423ca402ffce44e2e2a05d62c5ba1804 (patch)
treea4e22ba25ecd2365debb29ae5f9049a0a4cce527 /src/render.c
parent2d2ffad9db671a27841b4fefa82c2efec1904d54 (diff)
Circle peaks in hdfsee
Diffstat (limited to 'src/render.c')
-rw-r--r--src/render.c17
1 files changed, 16 insertions, 1 deletions
diff --git a/src/render.c b/src/render.c
index ce44610c..bd5d25a6 100644
--- a/src/render.c
+++ b/src/render.c
@@ -101,6 +101,7 @@ static void show_marked_features(struct image *image, guchar *data,
struct imagefeature *f;
int x, y;
+ double th;
f = image_get_feature(image->features, i);
@@ -109,7 +110,21 @@ static void show_marked_features(struct image *image, guchar *data,
x /= binning;
y /= binning;
- data[3*( x+w*(h-1-y) )+0] = 255;
+ for ( th=0; th<2*M_PI; th+=M_PI/40.0 ) {
+
+ int nx, ny;
+
+ nx = x + 10.0*cos(th);
+ ny = y + 10.0*sin(th);
+
+ if ( nx < 0 ) continue;
+ if ( ny < 0 ) continue;
+ if ( nx >= w ) continue;
+ if ( ny >= h ) continue;
+
+ data[3*( nx+w*(h-1-ny) )+0] = 255;
+
+ }
}
}