/* * hdfsee.c * * Quick yet non-crappy HDF viewer * * (c) 2006-2010 Thomas White * * Part of CrystFEL - crystallography with a FEL * */ #ifdef HAVE_CONFIG_H #include #endif #include #include #include "displaywindow.h" #include "utils.h" #include "render.h" /* Global program state */ DisplayWindow *main_window_list[64]; size_t main_n_windows = 0; static void show_help(const char *s) { printf("Syntax: %s [options] image.h5\n\n", s); printf( "Quick HDF5 image viewer.\n" "\n" " -h, --help Display this help message.\n" "\n" " -p, --peak-overlay= Draw circles in positions listed in file.\n" " -i, --int-boost= Multiply intensity by .\n" " -b, --binning= Set display binning to .\n" " --filter-cm Perform common-mode noise subtraction.\n" " --filter-noise Apply an aggressive noise filter which\n" " sets all pixels in each 3x3 region to\n" " zero if any of them have negative\n" " values.\n" " -c, --colscale= Use the given colour scale. Choose from:\n" " mono : Greyscale, black is zero.\n" " invmono : Greyscale, white is zero.\n" " colour : Colour scale:\n" " black-blue-pink-red-orange-\n" " -yellow-white.\n" "\n"); } /* Called to notify that an image display window has been closed */ void hdfsee_window_closed(DisplayWindow *dw) { size_t i; for ( i=0; i