improfile
Pixel-value cross-sections along line segments
Syntax
Description
Select Line Segments Interactively
lets you select line segments interactively from the image in the current axes. When you finish selecting line segments,c
= improfileimprofile
returns sampled pixel values along the line segments inc
.
With this syntax, you specify the line or path using the mouse, by clicking points in the image. PressBackspaceor删除删除之前的ly selected point. To finish selecting points, adding a final point, press shift-click, right-click, or double-click. To finish selecting points without adding a final point, pressReturn.
Select Line Segments by Specifying Endpoints
Specify Interpolation Method or Output Options
improfile (___)
without output arguments displays a plot of pixel values along the line segments. If you select a single line segment, thenimprofile
creates a two-dimensional plot of intensity values versus the distance along the line segment. If you select two or more line segments, thenimprofile
creates a three-dimensional plot of the intensity values versus theirx- andy-coordinates.