aboutsummaryrefslogtreecommitdiff
path: root/src/dw-hdfsee.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dw-hdfsee.c')
-rw-r--r--src/dw-hdfsee.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/dw-hdfsee.c b/src/dw-hdfsee.c
index 2f89a04e..974471f1 100644
--- a/src/dw-hdfsee.c
+++ b/src/dw-hdfsee.c
@@ -1341,6 +1341,23 @@ static void load_features_from_file(struct image *image, const char *filename)
image_add_feature(image->features, fs, ss, image, 1.0,
"peak");
+ } else if ( r == 2 ) {
+
+ p = find_orig_panel(image->det, fs, ss);
+
+ if ( p == NULL ) {
+ ERROR("Unable to find panel "
+ "(no geometry file given?)\n");
+ } else {
+
+ /* Convert coordinates to match rearranged
+ * panels in memory */
+ fs = fs - p->orig_min_fs + p->min_fs;
+ ss = ss - p->orig_min_ss + p->min_ss;
+ }
+ image_add_feature(image->features, fs, ss, image, 1.0,
+ "peak");
+
}
} while ( rval != NULL );