k-Wave Toolbox

reorderSensorData

Reorder sensor data from kspaceFirstOrder2D based on angle.

Syntax

[reordered_sensor_data, indices_new] = reorderSensorData(kgrid, sensor, sensor_data)

Description

reorderSensorData reorders the time series from kspaceFirstOrder2D based on the angle that each sensor point makes with the centre of the grid. The sensor mask must be a binary mask, and the angles are defined from the upper left quadrant or negative y-axis in the same way as within makeCircle and makeCartCircle.

Inputs

kgrid k-Wave grid object returned by kWaveGrid
sensor k-Wave sensor structure where sensor.mask is defined as a binary grid
sensor_data sensor data returned by kspaceFirstOrder2D ordered using MATLAB's standard column-wise linear matrix indexing

Outputs

reordered_sensor_data time varying sensor data reordered by the angle that each sensor point makes with the centre of the grid
indices_new the indices of the reordered time series, where reordered_sensor_data = sensor_data(indices_new, :)

See Also

kspaceFirstOrder2D, unmaskSensorData