]> PMI--2D Data Visualization

Two-dimensional Data Visualization

There are two standard toolbox functions for plotting two-dimensional data. plotData() displays measurements while preserving geometrical relationship. This is done by creating a subplot for each source and plotting every detector at its correct xy location (or vice versa), using color to indicate measurement amplitude.

showImage(), on the other hand, is for plotting reconstructed images. For each constant Z slice through the volume, a subplot is generated. The same color scale is used for all plots. If both Mua and Musp are given, then the data are placed on the same graph.

Function Summary

Syntax: h = plotData(SD, Medium, data[, srcFlag [, colormap]]);
Inputs: SD SD structure
MeasList Measurement List that corresponds to experimental data
data Data to be plotted, usually experimental data
srcFlag Flag: if non-zero, plot by source, otherwise plot by detector. Optional, defaults to 0.
colormap Colormap to be used for plotting data. Optional, defaults to cm256
Outputs: h Handle to the new figure
Syntax: h = showImage(Medium, Mu[, Musp]);
Inputs: Medium Medium structure
Mu Reconstructed data to be plotted (can be Mua or Musp)
Musp If the reconstructed Mua and Musp should appear on the same plot, pass Mua as the first argument and Musp as the second. Optional.
Outputs: h Handle to the new figure