aboutsummaryrefslogtreecommitdiff
path: root/src/image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2010-03-11 17:25:42 +0100
committerThomas White <taw@physics.org>2010-03-11 17:25:42 +0100
commit6ae81306a1be86cf47a7ec97a485b2184e22b4ff (patch)
treed105cc4430a0ed96643d947fd7281ce29c85da76 /src/image.c
parent23838cbb7fc78a020bf5939f652e94d326c6d57e (diff)
hdfsee: Show reflection indices ("feature names")
Diffstat (limited to 'src/image.c')
-rw-r--r--src/image.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/image.c b/src/image.c
index b0869cce..d4b7fcb9 100644
--- a/src/image.c
+++ b/src/image.c
@@ -71,7 +71,7 @@ ImageList *image_list_new()
void image_add_feature(ImageFeatureList *flist, double x, double y,
- struct image *parent, double intensity)
+ struct image *parent, double intensity, const char *name)
{
if ( flist->features ) {
flist->features = realloc(flist->features,
@@ -88,6 +88,7 @@ void image_add_feature(ImageFeatureList *flist, double x, double y,
flist->features[flist->n_features].parent = parent;
flist->features[flist->n_features].partner = NULL;
flist->features[flist->n_features].partner_d = 0.0;
+ flist->features[flist->n_features].name = name;
flist->features[flist->n_features].valid = 1;
flist->n_features++;