Skip to content

Commit efe994c

Browse files
committed
BUG: Filling the output image even for voxels outside of the mask
This fix prevents the failure of tests 18 to 21 on windows: https://open.cdash.org/viewTest.php?onlyfailed&buildid=4995219
1 parent b6e70f8 commit efe994c

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

include/itkCoocurrenceTextureFeaturesImageFilter.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ CoocurrenceTextureFeaturesImageFilter<TInputImage, TOutputImage>
180180
// If the voxel is outside of the mask, don't treat it
181181
if( inputNIt.GetCenterPixel() < ( - 5) ) //the pixel is outside of the mask
182182
{
183+
outputPixel.Fill(0);
184+
outputIt.Set(outputPixel);
183185
progress.CompletedPixel();
184186
++inputNIt;
185187
++outputIt;

include/itkRunLengthTextureFeaturesImageFilter.hxx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,8 @@ RunLengthTextureFeaturesImageFilter<TInputImage, TOutputImage>
200200
// If the voxel is outside of the mask, don't treat it
201201
if( inputNIt.GetCenterPixel() < ( - 5) ) //the pixel is outside of the mask
202202
{
203+
outputPixel.Fill(0);
204+
outputIt.Set(outputPixel);
203205
progress.CompletedPixel();
204206
++inputNIt;
205207
++outputIt;

0 commit comments

Comments
 (0)