Differences

This shows you the differences between two versions of the page.

Link to this comparison view

reference:ft_plot_slice [2018/08/23 14:43] (current)
Line 1: Line 1:
 +=====  FT_PLOT_SLICE =====
 +
 +Note that this reference documentation is identical to the help that is displayed in MATLAB when you type "help ft_plot_slice"​.
 +
 +<​html><​pre>​
 +  <a href=/​reference/​ft_plot_slice><​font color=green>​FT_PLOT_SLICE</​font></​a>​ plots a 2-D cut through a 3-D volume and interpolates if needed
 + 
 +  Use as
 +    ft_plot_slice(dat,​ ...)
 +  or
 +    ft_plot_slice(dat,​ mask, ...)
 +  where dat and mask are equal-sized 3-D arrays.
 + 
 +  Additional options should be specified in key-value pairs and can be
 +    '​transform' ​   = 4x4 homogeneous transformation matrix specifying the mapping from
 +                     voxel coordinates to the coordinate system in which the data are plotted.
 +    '​location' ​    = 1x3 vector specifying a point on the plane which will be plotted
 +                     the coordinates are expressed in the coordinate system in which the
 +                     data will be plotted. location defines the origin of the plane
 +    '​orientation' ​ = 1x3 vector specifying the direction orthogonal through the plane
 +                     which will be plotted (default = [0 0 1])
 +    '​unit' ​        = string, can be '​m',​ '​cm'​ or 'mm (default is automatic)
 +    '​resolution' ​  = number (default = 1 mm)
 +    '​datmask' ​     = 3D-matrix with the same size as the data matrix, serving as opacitymap
 +                     If the second input argument to the function contains a matrix, this
 +                     will be used as the mask
 +    '​maskstyle' ​   = string, '​opacity'​ or '​colormix',​ defines the rendering
 +    '​background' ​  = needed when maskstyle is '​colormix',​ 3D-matrix with
 +                     the same size as the data matrix, serving as
 +                     ​grayscale image that provides the background
 +    '​opacitylim' ​  = 1x2 vector specifying the limits for opacity masking
 +    '​interpmethod'​ = string specifying the method for the interpolation,​ see INTERPN (default = '​nearest'​)
 +    '​style' ​       = string, '​flat'​ or '​3D'​
 +    '​colormap' ​    = string, see COLORMAP
 +    '​clim' ​        = 1x2 vector specifying the min and max for the colorscale
 + 
 +  You can plot the slices from the volume together with an intersection of the slices
 +  with a triangulated surface mesh (e.g. a cortical sheet) using
 +    '​intersectmesh' ​      = triangulated mesh, see <a href=/​reference/​ft_prepare_mesh><​font color=green>​FT_PREPARE_MESH</​font></​a>​
 +    '​intersectcolor' ​     = string, color specification
 +    '​intersectlinestyle' ​ = string, line specification ​
 +    '​intersectlinewidth' ​ = number
 + 
 +  See also <a href=/​reference/​ft_plot_ortho><​font color=green>​FT_PLOT_ORTHO</​font></​a>,​ <a href=/​reference/​ft_plot_montage><​font color=green>​FT_PLOT_MONTAGE</​font></​a>,​ <a href=/​reference/​ft_sourceplot><​font color=green>​FT_SOURCEPLOT</​font></​a>​
 +</​pre></​html>​