Skip to content

Commit 60ca9d3

Browse files
committed
re #1137: Merged volume reconstructor fan clipping and PixelRejectionThreshold fixes from trunk
r5010 re #1137: Fixed clipping fan computation in optimized (partial or full) volume reconstruction mode --------------------- r5009 re #1137: Fixed crash in volume reconstructor when PixelRejectionThreshold was specified and Optimization was set to "NONE" ---------------------
1 parent 9fd78f6 commit 60ca9d3

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

PlusLib/src/PlusVolumeReconstruction/vtkPlusPasteSliceIntoVolumeHelperOptimized.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1028,7 +1028,7 @@ static void vtkOptimizedInsertSlice(vtkPlusPasteSliceIntoVolumeInsertSliceParams
10281028
bool skipMiddleSegment = false;
10291029
int xSkipMiddleSegmentPixStart; // first pixel that should be skipped in the middle
10301030
int xSkipMiddleSegmentPixEnd; // last pixel that should be skipped in the middle
1031-
if (fanClippingEnabled)
1031+
if (fanClippingEnabled && xIntersectionPixStart <= xIntersectionPixEnd)
10321032
{
10331033
// equivalent to: xIntersectionPixStart < PlusMath::Ceil(fanLinePixelRatioLeft*y + fanOriginInPixels[0] + 1)
10341034
// this is what the radius would be based on tan(fanAngle)

PlusLib/src/PlusVolumeReconstruction/vtkPlusPasteSliceIntoVolumeHelperUnoptimized.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,6 @@ static void vtkUnoptimizedInsertSlice(vtkPlusPasteSliceIntoVolumeInsertSlicePara
331331
if (inPixelSumAllComponents<pixelRejectionThresholdSumAllComponents)
332332
{
333333
// too dark, skip this pixel
334-
inPtr += numscalars;
335334
continue;
336335
}
337336
}

0 commit comments

Comments
 (0)