/* * imagedisplay.h * * Show raw and processed images * * (c) 2007 Thomas White * dtr - Diffraction Tomography Reconstruction * */ #ifdef HAVE_CONFIG_H #include #endif #ifndef IMAGEDISPLAY_H #define IMAGEDISPLAY_H #include #include typedef struct struct_imagedisplay { unsigned int width; unsigned int height; /* Of underlying image */ char *title; guchar *data; GtkWidget *window; GdkPixbuf *pixbuf; GdkPixbuf *pixbuf_scaled; GtkWidget *image; unsigned int view_width; unsigned int view_height; /* Of window */ } ImageDisplay; extern ImageDisplay *imagedisplay_open(int16_t *image, unsigned int width, unsigned int height, const char *title); extern void imagedisplay_mark_point(ImageDisplay *imagedisplay, unsigned int x, unsigned int y); #include "control.h" extern void imagedisplay_add_tilt_axis(ImageDisplay *imagedisplay, ControlContext *ctx, double omega); #endif /* IMAGEDISPLAY_H */