increased "inf" constant in the true distance transform algorithm to handle high-resolution images
This commit is contained in:
@@ -501,7 +501,7 @@ struct DTRowInvoker
|
|||||||
|
|
||||||
void operator()( const BlockedRange& range ) const
|
void operator()( const BlockedRange& range ) const
|
||||||
{
|
{
|
||||||
const float inf = 1e6f;
|
const float inf = 1e15f;
|
||||||
int i, i1 = range.begin(), i2 = range.end();
|
int i, i1 = range.begin(), i2 = range.end();
|
||||||
int n = dst->cols;
|
int n = dst->cols;
|
||||||
AutoBuffer<uchar> _buf((n+2)*2*sizeof(float) + (n+2)*sizeof(int));
|
AutoBuffer<uchar> _buf((n+2)*2*sizeof(float) + (n+2)*sizeof(int));
|
||||||
@@ -559,7 +559,7 @@ struct DTRowInvoker
|
|||||||
static void
|
static void
|
||||||
icvTrueDistTrans( const CvMat* src, CvMat* dst )
|
icvTrueDistTrans( const CvMat* src, CvMat* dst )
|
||||||
{
|
{
|
||||||
const float inf = 1e6f;
|
const float inf = 1e15f;
|
||||||
|
|
||||||
if( !CV_ARE_SIZES_EQ( src, dst ))
|
if( !CV_ARE_SIZES_EQ( src, dst ))
|
||||||
CV_Error( CV_StsUnmatchedSizes, "" );
|
CV_Error( CV_StsUnmatchedSizes, "" );
|
||||||
|
Reference in New Issue
Block a user