Commit 53f020e
committed
STYLE: Address Greptile review on SmoothingRecursiveYvvGaussianFilter
Greptile P1/P2 findings:
- itk-module.cmake: rename `GPU_DEPENDANCIES` -> `GPU_DEPENDENCIES`
(typo).
- src/CMakeLists.txt: drop `${INRIA_ITK_LIBRARIES}` /
`${OPENCL_LIBRARIES}` (undefined in ITK; OpenCL linkage is provided
by the `ITKGPUCommon` module dep). Drop the `GPU_HANDLES_DOUBLE` /
`NVIDIA_GPU` guards (variables are never set in ITK's build, so the
branches were unreachable).
- test/CMakeLists.txt: same `GPU_HANDLES_DOUBLE` / `NVIDIA_GPU` guard
removal.
- src/OpenCLInfo.cpp: remove the standalone-only diagnostic utility
(it has its own `main()` and is not listed in src/CMakeLists.txt).
- include/itkGPUSmoothingRecursiveYvvGaussianImageFilter.h{,xx}:
replace raw `new ScalarRealType[N]` for `m_Bvalues` and
`m_CPUMatrix` with `std::vector<ScalarRealType>`. The previous code
leaked on every `SetUp()` re-entry (the destructor is `= default`
and there is no matching `delete[]`). `SetCPUBufferPointer` now
uses `.data()`.1 parent 57695a8 commit 53f020e
6 files changed
Lines changed: 15 additions & 145 deletions
File tree
- Modules/Filtering/SmoothingRecursiveYvvGaussianFilter
- include
- src
- test
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
170 | 171 | | |
171 | 172 | | |
172 | 173 | | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
178 | 179 | | |
179 | 180 | | |
180 | | - | |
| 181 | + | |
181 | 182 | | |
182 | 183 | | |
183 | 184 | | |
| |||
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
| |||
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
120 | | - | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
| 264 | + | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
271 | 271 | | |
272 | 272 | | |
273 | 273 | | |
274 | | - | |
| 274 | + | |
275 | 275 | | |
276 | 276 | | |
277 | | - | |
| 277 | + | |
278 | 278 | | |
279 | 279 | | |
280 | 280 | | |
| |||
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | | - | |
| 23 | + | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| |||
Lines changed: 0 additions & 14 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | 2 | | |
7 | | - | |
8 | 3 | | |
9 | 4 | | |
10 | 5 | | |
11 | 6 | | |
12 | 7 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | 8 | | |
18 | 9 | | |
19 | 10 | | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 11 | | |
Lines changed: 0 additions & 108 deletions
This file was deleted.
Lines changed: 0 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | 6 | | |
16 | 7 | | |
17 | 8 | | |
| |||
0 commit comments