fcrosssection
Displays topology along a cross section
Contents
Syntax
fcrosssection(topologicalBase)
fcrosssection(..., ' PropertyName ', 'PropertyValue',...)
fitZ = fcrosssection(...)
[fitR, fitZ] = fcrosssection(...)
[fitR, fitZ, dataR, dataZ] = fcrosssection(...)
Description
fcrosssection(topologicalBase) computes the crosssection along a user defined line.
fcrosssection(..., ' PropertyName ', 'PropertyValue',...) manipulates plotting characteristic by setting the fcrosssection-properties. Enter properties as one or more name-value pairs.
Options
This section provides a description of properties. Curly braces { } enclose default values
| ROI | |
| {[0,0,image width, image height]} | |
| Use ROI if clipping was used by fanalyze. | |
| Image | |
| An RGB image may be provided as texture for the surface plotted. | |
| Line | |
| {} | |
| If unspecified a GUI is opened to draw the line by hand For GUI help, see getline. Otherwise Line must be a 2x2 matrix [X1 , Y1 ; X2, Y2] | |
| plot | |
| {fit+data} | data | fit | nice | |
| Specifies plot style (see below) | |
| Parent | |
| If given, fcrosssection plots the topology in the axes with given handle rather than the current axes. |
Plot style
fcrosssection provides multiple plot styles:
- fit: To compute the crosssection the topology is fitted using ffit. If fit ist turned on, only the fit along the crosssection will be displayed
- data: If data is turned on, only the data points along the crosssection will be displayed
- fit+data: Like data and fit
- nice: In addition to fit+data, nice will also show a 3D plot of the surface (fplot3) and the crosssection.
The plot's r axis is selected by the crossection while on the z axis the data will be shown.
Output
The fcrosssection function has four different output modes that can be used no matter what value plot is set to:
- fitZ: The fitted z data along the crosssection
- fitR: The corresponding r values
- dataZ: The datapoints z value
- dataR: The corresponding r values
Examples
Basic example:
fcrosssection(detail);
An advanced example
fcrosssection(detail, 'ROI', roi, 'Line', line, 'Image', J, 'plot', 'nice');