aboutsummaryrefslogtreecommitdiff
path: root/src/process_image.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2023-06-06 13:41:52 +0200
committerThomas White <taw@physics.org>2023-06-06 13:41:52 +0200
commit117ed0d0339163e04290349f9fe468b4bb6982e7 (patch)
treeb96e7dfb22cb27d8272a21f155817f7eec257e3e /src/process_image.c
parentde407aa9fa93192aad6773a53fe51295d9c8cb8e (diff)
parentb5550e4399415fe4863057d6cbd406faf3f2df31 (diff)
Merge branch 'asapo-producer'
Diffstat (limited to 'src/process_image.c')
-rw-r--r--src/process_image.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/process_image.c b/src/process_image.c
index 5bc527a1..8acd3e86 100644
--- a/src/process_image.c
+++ b/src/process_image.c
@@ -56,6 +56,7 @@
#include "predict-refine.h"
#include "im-sandbox.h"
#include "im-zmq.h"
+#include "im-asapo.h"
static float **backup_image_data(float **dp, struct detgeom *det)
{
@@ -177,7 +178,7 @@ static struct image *file_wait_open_read(const char *filename,
void process_image(const struct index_args *iargs, struct pattern_args *pargs,
Stream *st, int cookie, const char *tmpdir,
int serial, struct sb_shm *sb_shared,
- char *last_task)
+ char *last_task, struct im_asapo *asapostuff)
{
struct image *image;
int i;
@@ -480,6 +481,8 @@ streamwrite:
"%s\n", n, n>1?"s":"", image->filename, image->ev);
}
+ im_asapo_send(asapostuff, image, image->hit);
+
out:
/* Count crystals which are still good */
set_last_task(last_task, "process_image finalisation");