Commit 582f7e8
committed
STYLE: Address Greptile review on TextureFeatures
itkFirstOrderTextureHistogram.h: guard the unbiased-variance estimate
on count > 1 so a single-pixel window no longer divides by zero and
produces NaN skewness; correct the stale \ingroup tag.
itkFirstOrderTextureFeaturesImageFilter.h: correct the stale
\ingroup tag from ITKTextureFeatures (old remote-module name) to
TextureFeatures.
itkCoocurrenceTextureFeaturesImageFilter.h: drop the unrelated
itkScalarImageToRunLengthMatrixFilter.h include — neither the .h
nor .hxx uses any type from it.
itkCoocurrenceTextureFeaturesImageFilter.hxx: write a zero output
pixel on the totalNumberOfFreq == 0 branch so the output never
contains uninitialized memory; replace raw new[]/delete[] of the
marginal-sums buffer with std::vector for exception safety and
zero-initialization.
test/CMakeLists.txt: drop the dead first set(TextureFeaturesTests …)
block — it listed nonexistent ScalarImageTo* sources and was
immediately overwritten by the second definition.1 parent 8353852 commit 582f7e8
5 files changed
Lines changed: 12 additions & 27 deletions
File tree
- Modules/Filtering/TextureFeatures
- include
- test
Lines changed: 0 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
| |||
Lines changed: 8 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
27 | 29 | | |
28 | 30 | | |
29 | 31 | | |
| |||
229 | 231 | | |
230 | 232 | | |
231 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
232 | 239 | | |
233 | 240 | | |
234 | 241 | | |
| |||
360 | 367 | | |
361 | 368 | | |
362 | 369 | | |
363 | | - | |
| 370 | + | |
364 | 371 | | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | 372 | | |
370 | 373 | | |
371 | 374 | | |
| |||
417 | 420 | | |
418 | 421 | | |
419 | 422 | | |
420 | | - | |
421 | | - | |
422 | 423 | | |
423 | 424 | | |
424 | 425 | | |
| |||
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
96 | 96 | | |
97 | 97 | | |
98 | 98 | | |
99 | | - | |
100 | | - | |
| 99 | + | |
| 100 | + | |
101 | 101 | | |
102 | 102 | | |
103 | 103 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | 3 | | |
19 | 4 | | |
20 | 5 | | |
| |||
0 commit comments