00001 #ifndef XGRAY_TCL_HPP 00002 #define XGRAY_TCL_HPP 00003 00004 #include "imgclass.hpp" 00005 #include "stdalgorithm.hpp" 00006 #include <tcl.h> 00007 #include <tk.h> 00008 void getimage (const bild16& bmp, Tk_PhotoHandle vhandle); 00009 void getimage (const bildfloat& bmp, Tk_PhotoHandle vhandle); 00010 void getimage_contrast (const bild16& bmp, Tk_PhotoHandle vhandle, int low, int high) THROWSPEC; 00011 void getimage_contrast (const bildfloat& bmp, Tk_PhotoHandle vhandle, float low, float high) THROWSPEC; 00012 int getimage_range(const bild16& bmp, Tk_PhotoHandle vhandle, int x1, int y1, int x2, int y2, int *high) THROWSPEC; 00013 float getimage_range(const bildfloat& bmp, Tk_PhotoHandle vhandle, int x1, int y1, int x2, int y2, float *high) THROWSPEC; 00014 00015 int getminmax(const bild16& bmp, int x1, int y1, int x2, int y2, int *high) THROWSPEC; 00016 float getminmax(const bildfloat& bmp, int x1, int y1, int x2, int y2, float *high) THROWSPEC; 00017 00018 extern bild16 *cimg; 00019 extern bildfloat *cimg_f; 00020 extern bildcomplex *cimg_c; 00021 00022 #endif 00023