Skip to content
This repository has been archived by the owner on Mar 30, 2020. It is now read-only.

Commit

Permalink
ENH: emit a useful error message with small threaded regions
Browse files Browse the repository at this point in the history
  • Loading branch information
dzenanz committed Jul 20, 2018
1 parent 57e2a8a commit a93ca65
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions include/itkRecursiveLineYvvGaussianImageFilter.hxx
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,14 @@ RecursiveLineYvvGaussianImageFilter< TInputImage, TOutputImage >

const unsigned int ln = region.GetSize()[this->m_Direction];

if ( ln < 4 )
{
itkExceptionMacro( "The number of pixels along direction "
<< this->m_Direction
<< " in this work-unit image region is less than 4."
<< " Note: TBBMultiThreader can divide small regions into really small pieces.");
}

RealType *inps = nullptr;
RealType *outs = nullptr;
RealType *scratch = nullptr;
Expand Down

0 comments on commit a93ca65

Please sign in to comment.