reconstruct
Image reconstruction.
Functions:
| Name | Description |
|---|---|
backproject |
Reconstruct an image using the backprojection algorithm. |
backproject
backproject(data, tx_position, rx_position, image_x, image_y, image_z=0, c=343.0, rvg=True, complex_image=True, channel_dim='channel', time_dim='time', position_dim='xyz')
Reconstruct an image using the backprojection algorithm.
The backprojection algorithm takes each trace of data and projects it back onto the positions on the reconstruction surface that it could have originated from. For each trace, this results in an arc of data. When summed over all pings and channels, the data constructively adds in true target locations and destructively cancels elsewhere.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
data
|
DataArray
|
The data to backproject. |
required |
tx_position
|
DataArray
|
The position of the transmitter for each trace in |
required |
rx_position
|
DataArray
|
The position of each receiver for each trace in |
required |
image_x
|
ArrayLike
|
The x coordinates of the focal points to reconstruct at. This must be one-dimensional. |
required |
image_y
|
ArrayLike
|
The y coordinates of the focal points to reconstruct at. This must be one-dimensional. |
required |
image_z
|
ArrayLike
|
The z coordinates of the focal points to reconstruct at. This may be either scalar if z is constant for all focal points, or a two-dimensional array giving a value for each focal point. |
0
|
c
|
float
|
The speed of sound to use during reconstruction. |
343.0
|
rvg
|
bool
|
Whether to apply a range-varying gain during reconstruction to compensate for spherical spreading losses. Note that backprojection has an inherent one-way gain. Setting this parameter to True applies the remaining one-way gain to complete this compensation. Setting it to False does not apply the remaining gain, leaving the image with its inherent compensation. |
True
|
complex_image
|
bool
|
If True and |
True
|
channel_dim
|
str
|
The dimension of |
'channel'
|
time_dim
|
str
|
The dimension of |
'time'
|
position_dim
|
str
|
The dimension of |
'xyz'
|
Returns:
| Name | Type | Description |
|---|---|---|
image |
DataArray
|
The complex image formed at the given focal points. This will be two-dimensional with the requested x and y coordinates. |
Source code in src/airsonar/processing/reconstruct.py
40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 | |