00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static const char docstring[] =
00011 "hmi_patch driver for HMI patch finding\n"
00012 "\n"
00013 " [bb,s,yrgn,crit]=hmi_patch(y,mag,geom,active,ker,kwt,tau)\n"
00014 " * Find active-region patches in a mask image y, returning them as\n"
00015 " a list of bounding boxes bb, and a re-encoded mask image yrgn.\n"
00016 " Optionally returns the smoothed mask via crit.\n"
00017 " * If mag is given as [], the statistics s are not computed and\n"
00018 " the return value is empty.\n"
00019 " * The parameter active tells what parts of y are considered\n"
00020 " to be within-active-region: (y == active) identifies the active\n"
00021 " stuff to be combined into patches.\n"
00022 " * The parameters ker, kwt, and tau control grouping, see\n"
00023 " smoothsphere for more.\n"
00024 " * Depending on later needs, some other morphological parameters\n"
00025 " might be added so that very tiny ARs are removed. Currently\n"
00026 " this is not needed.\n"
00027 "\n"
00028 " Inputs:\n"
00029 " real y(m,n)\n"
00030 " real mag(m,n) or (0,0)\n"
00031 " real geom(5)\n"
00032 " int active\n"
00033 " real ker(Nk)\n"
00034 " real kwt(3)\n"
00035 " real tau\n"
00036 "\n"
00037 " Outputs:\n"
00038 " int bb(nr,4)\n"
00039 " real stats(nr,28) or (0,0)\n"
00040 " real yrgn(m,n)\n"
00041 " opt real crit(m,n)\n"
00042 "\n"
00043 " See Also: smoothsphere region_bb concomponent roi_stats_mag\n"
00044 "\n"
00045 " turmon oct 2009, june 2010, sep 2010\n"
00046 "\n"
00047 "";
00048
00049
00050