00001 00002 /* 00003 * THIS IS A GENERATED FILE; DO NOT EDIT. 00004 * 00005 * Declarations for calling `hmi_patch' a.k.a. `Hpat' as a C library. 00006 * 00007 * Made by intermediate binary `hmi_patch.out' on: 00008 * Fri Jul 8 01:30:07 2011 00009 * 00010 * Code for include-generation driver `../Gen-include.c' last modified on: 00011 * Mon Jun 7 15:11:28 2010 00012 * 00013 */ 00014 00015 // Original documentation block 00016 /* 00017 * hmi_patch driver for HMI patch finding 00018 * 00019 * [bb,s,yrgn,crit]=hmi_patch(y,mag,geom,active,ker,kwt,tau) 00020 * * Find active-region patches in a mask image y, returning them as 00021 * a list of bounding boxes bb, and a re-encoded mask image yrgn. 00022 * Optionally returns the smoothed mask via crit. 00023 * * If mag is given as [], the statistics s are not computed and 00024 * the return value is empty. 00025 * * The parameter active tells what parts of y are considered 00026 * to be within-active-region: (y == active) identifies the active 00027 * stuff to be combined into patches. 00028 * * The parameters ker, kwt, and tau control grouping, see 00029 * smoothsphere for more. 00030 * * Depending on later needs, some other morphological parameters 00031 * might be added so that very tiny ARs are removed. Currently 00032 * this is not needed. 00033 * 00034 * Inputs: 00035 * real y(m,n) 00036 * real mag(m,n) or (0,0) 00037 * real geom(5) 00038 * int active 00039 * real ker(Nk) 00040 * real kwt(3) 00041 * real tau 00042 * 00043 * Outputs: 00044 * int bb(nr,4) 00045 * real stats(nr,28) or (0,0) 00046 * real yrgn(m,n) 00047 * opt real crit(m,n) 00048 * 00049 * See Also: smoothsphere region_bb concomponent roi_stats_mag 00050 * 00051 * turmon oct 2009, june 2010, sep 2010 00052 * 00053 * 00054 */ 00055 00056 #ifndef _mexfn_hmi_patch_h_ 00057 #define _mexfn_hmi_patch_h_ 00058 00059 // function entry point 00060 mexfn_lib_t main_hmi_patch; 00061 00062 // argument counts 00063 #define MXT_Hpat_NARGIN_MIN 7 00064 #define MXT_Hpat_NARGIN_MAX 7 00065 #define MXT_Hpat_NARGOUT_MIN 2 00066 #define MXT_Hpat_NARGOUT_MAX 4 00067 00068 // input argument numbers 00069 #define MXT_Hpat_ARG_y 0 00070 #define MXT_Hpat_ARG_mag 1 00071 #define MXT_Hpat_ARG_geom 2 00072 #define MXT_Hpat_ARG_active 3 00073 #define MXT_Hpat_ARG_ker 4 00074 #define MXT_Hpat_ARG_kwt 5 00075 #define MXT_Hpat_ARG_tau 6 00076 00077 // output argument numbers 00078 #define MXT_Hpat_ARG_bb 0 00079 #define MXT_Hpat_ARG_stats 1 00080 #define MXT_Hpat_ARG_yrgn 2 00081 #define MXT_Hpat_ARG_crit 3 00082 00083 00084 #endif // _mexfn_hmi_patch_h_ 00085 00086 // (file ends)