00001 00015 #ifndef _MEDIANS_1D_H_ 00016 #define _MEDIANS_1D_H_ 00017 00019 00039 00040 00059 00060 00077 00078 00086 00087 00102 /* Data modified by the QuickSelect and Wirth routines; 00103 change the typedef below as required. */ 00104 00105 typedef float pixelvalue; 00106 00107 void swap(pixelvalue *, pixelvalue *); 00108 00109 pixelvalue quick_select(pixelvalue a[], int n); 00110 00111 pixelvalue kth_smallest(pixelvalue *, int, int); 00112 00113 pixelvalue wirth(pixelvalue a[], int n); 00114 00115 pixelvalue torben(pixelvalue a[], int n); 00116 00117 #endif 00118 00119 /*********************************************************************** 00120 * $RCSfile: medians_1D.h,v $ 00121 * 00122 * $Log: medians_1D.h,v $ 00123 * Revision 1.5 2005/09/26 02:57:49 sarnold 00124 * changed macros to functions (makes swig happy) 00125 * 00126 * Revision 1.4 2005/09/23 05:50:54 sarnold 00127 * updated to doxygen-style comments 00128 * 00129 * Revision 1.3 2005/08/28 07:03:53 sarnold 00130 * more fine-tuning 00131 * 00132 * Revision 1.2 2005/08/27 00:29:34 sarnold 00133 * header and comment cleanup 00134 * 00135 * Revision 1.1.1.1 2005/08/26 20:18:07 sarnold 00136 * initial 1-D median filter demo 00137 * 00138 * Stephen Arnold <stephen.arnold@acm.org> 00139 * Last edit: $Date: 2005/09/26 02:57:49 $ 00140 * 00141 ***********************************************************************/
1.5.1