|
40 | 40 | from numpy import float32, complex64 |
41 | 41 | from typing import Optional, Type |
42 | 42 |
|
| 43 | +from httomolibgpu.misc.supp_func import data_checker |
| 44 | + |
43 | 45 |
|
44 | 46 | __all__ = [ |
45 | 47 | "FBP2d_astra", |
@@ -103,6 +105,8 @@ def FBP2d_astra( |
103 | 105 | np.ndarray |
104 | 106 | The FBP reconstructed volume as a numpy array. |
105 | 107 | """ |
| 108 | + data = data_checker(data, verbosity=True, method_name="FBP2d_astra") |
| 109 | + |
106 | 110 | data_shape = np.shape(data) |
107 | 111 | if recon_size is None: |
108 | 112 | recon_size = data_shape[2] |
@@ -175,6 +179,8 @@ def FBP3d_tomobar( |
175 | 179 | cp.ndarray |
176 | 180 | FBP reconstructed volume as a CuPy array. |
177 | 181 | """ |
| 182 | + data = data_checker(data, verbosity=True, method_name="FBP3d_tomobar") |
| 183 | + |
178 | 184 | RecToolsCP = _instantiate_direct_recon_class( |
179 | 185 | data, angles, center, recon_size, gpu_id |
180 | 186 | ) |
@@ -227,6 +233,9 @@ def LPRec3d_tomobar( |
227 | 233 | cp.ndarray |
228 | 234 | The Log-polar Fourier reconstructed volume as a CuPy array. |
229 | 235 | """ |
| 236 | + |
| 237 | + data = data_checker(data, verbosity=True, method_name="LPRec3d_tomobar") |
| 238 | + |
230 | 239 | RecToolsCP = _instantiate_direct_recon_class(data, angles, center, recon_size, 0) |
231 | 240 |
|
232 | 241 | reconstruction = RecToolsCP.FOURIER_INV( |
@@ -281,6 +290,8 @@ def SIRT3d_tomobar( |
281 | 290 | cp.ndarray |
282 | 291 | The SIRT reconstructed volume as a CuPy array. |
283 | 292 | """ |
| 293 | + data = data_checker(data, verbosity=True, method_name="SIRT3d_tomobar") |
| 294 | + |
284 | 295 | RecToolsCP = _instantiate_iterative_recon_class( |
285 | 296 | data, |
286 | 297 | angles, |
@@ -346,6 +357,8 @@ def CGLS3d_tomobar( |
346 | 357 | cp.ndarray |
347 | 358 | The CGLS reconstructed volume as a CuPy array. |
348 | 359 | """ |
| 360 | + data = data_checker(data, verbosity=True, method_name="CGLS3d_tomobar") |
| 361 | + |
349 | 362 | RecToolsCP = _instantiate_iterative_recon_class( |
350 | 363 | data, angles, center, recon_size, gpu_id, datafidelity="LS" |
351 | 364 | ) |
|
0 commit comments