k-Wave Toolbox
k-Wave Toolbox Previous   Next

unmaskSensorData

Reorder data recorded using a binary sensor mask

Syntax

unmasked_sensor_data = unmaskSensorData(kgrid, sensor, sensor_data)

Description

unmaskSensorData restores the grid position of the data recorded at a single time-step within the time-series data returned by kspaceFirstOrder1D, kspaceFirstOrder2D, or kspaceFirstOrder3D when using a binary sensor mask.

Inputs

kgrid

k-Wave grid structure returned by makeGrid

sensor

k-Wave sensor structure where sensor.mask is defined as a binary grid

sensor_data

sensor data (returned by the first order simulation functions) at a single time-step ordered using MATLAB's standard column-wise linear matrix indexing

Outputs

unmasked_sensor_data

Grid with the sensor data reordered to its original position on the sensor mask

See Also

makeGrid, kspaceFirstOrder1D, kspaceFirstOrder2D, kspaceFirstOrder3D, reorderSensorData


© 2009-2014 Bradley Treeby and Ben Cox.