fScan Reference Manual, Chapter 2 (CmdLineOptions:Expr): Peak
usage: -e peak minval flag
The PEAK command compares the intensity value of each voxel with the intensities of its 26 immediate neighbors. It results in a map image, in which each new voxel is a flag (see below).
FLAG:
1 - only local extreme values
2 - consider negative peaks as well
4 - save peak locs as ROI points
Return values (combined as bitflag):
1 - has lower neighbor (or higher if neg)
2 - has equal neighbor
4 - has higher neighbor (but not if FLAG&1)
See Also:
Gradient,
Segment,
Descend
fScan Home, fScan Manual, CmdLineOptions, Expression Command, Manual Help