00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 static const char docstring[] =
00011 " clean_edge_label: clean up labels at extreme edge of a disk\n"
00012 "\n"
00013 " [res,nclean]=clean_edge_label(img,center,delta,fill,mode);\n"
00014 " * Remove possibly-tainted labels at edge of disk by cleaning\n"
00015 " pixels in an annulus of width delta pixels. Also, sets all\n"
00016 " off-disk values to the value of the (1,1) pixel of img.\n"
00017 " * There are two cleaning modes. Easiest is, set values in\n"
00018 " the edge annulus to `fill' (NaN is OK). But, if `mode'\n"
00019 " contains the string \"adaptive\", we instead propagate the value\n"
00020 " just inside the annulus radially outward to the limb, and the\n"
00021 " `fill' value is unused.\n"
00022 " * The number of on-disk pixels altered is in nclean.\n"
00023 " * Primary disk parameters (x-center, y-center, radius) are in\n"
00024 " `center'. The sun is the disk defined by these three numbers.\n"
00025 " As a convenience, 'center' can be a \"geom\" vector, a 5-tuple\n"
00026 " with beta and p-angle at the end (these are not needed by\n"
00027 " this routine).\n"
00028 " * If delta < 0, img is propagated to res without further ado.\n"
00029 " (The off-disk clearing is not done either.)\n"
00030 " In this case, the center parameter need not be correct.\n"
00031 " * The \"mode\" string also switches between sesw (mode = 'sesw')\n"
00032 " or transposed (mode = 'sene') pixel ordering. You must specify\n"
00033 " one or the other.\n"
00034 " * The normal HMI (and normal MDI) pixel ordering starts in the\n"
00035 " southeast corner, and the first scan line of pixels runs toward the\n"
00036 " southwest corner. This is `sesw' ordering. The transposed ordering\n"
00037 " is `sene'; this ordering is what we used for the JPL MDI processing.\n"
00038 " This is implemented via internal stride parameters.\n"
00039 "\n"
00040 "\n"
00041 " Inputs:\n"
00042 " real img(m,n);\n"
00043 " real center(3) or (5);\n"
00044 " real delta;\n"
00045 " real fill;\n"
00046 " string mode;\n"
00047 "\n"
00048 " Outputs:\n"
00049 " real res(m,n);\n"
00050 " int nclean;\n"
00051 "\n"
00052 "\n"
00053 " implemented as a mex file\n"
00054 "\n"
00055 "";
00056
00057
00058