**fScan Reference Manual, Chapter 2 (CmdLineOptions:Expr): erode** ===== Erode -- Erode edges of an intensity region in a 3D image volume ===== **usage: -expr [NREPTS] [static] erode val maskbits newval flag nmatch nneighbors** VAL - "Inside" value (or Percent value if (FLAG & (4|8))\\ MASKBITS - voxel data values to consider for comparing with VAL (DATABITS is inverse of MASKBITS)\\ NEWVAL - bit-value to turn on when adding (dilating) a voxel. If NEWVAL is negative and MASKBITS is zero, then the input data voxel value will be used when dilating into neighboring voxels. FLAG:\\ * 0 - (default) * 1 - * 2 - erode/dilate in 2-D plane only * 4 - Stop on dark edge (voxel darker than (100-VAL1)% of inside neighbors (Needs MASKBITS set) * 8 - Stop on bright edge (brighter than (100+VAL1)% of inside neighbors **See Also:**\\ [[jvs:fscan:manual:chapter2:expression:dilate|DILATE]], [[jvs:fscan:manual:chapter2:expression:flood|FLOOD]], [[jvs:fscan:manual:chapter3:threshold|THRESHOLD]], [[jvs:fscan:manual:chapter1:segmentation|Segmentation]]\\ [[jvs:fscan|fScan Home]], [[jvs:fscan:manual|fScan Manual]], [[jvs:fscan:manual:chapter2|CmdLineOptions]], [[jvs:fscan:manual:chapter2:expression|Expression Command]], [[jvs:fscan:manual:help|Manual Help]]