Advertisement
Guest User

Assertion failed (func != 0) in cv::resize, file C:\opencv_2

a guest
Apr 2nd, 2015
518
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.65 KB | None | 0 0
  1.     int xmin = 0, xmax = dsize.width, width = dsize.width*cn;
  2.     bool area_mode = interpolation == INTER_AREA;
  3.     bool fixpt = depth == CV_8U;
  4.     float fx, fy;
  5.     ResizeFunc func=0;
  6.     int ksize=0, ksize2;
  7.     if( interpolation == INTER_CUBIC )
  8.         ksize = 4, func = cubic_tab[depth];
  9.     else if( interpolation == INTER_LANCZOS4 )
  10.         ksize = 8, func = lanczos4_tab[depth];
  11.     else if( interpolation == INTER_LINEAR || interpolation == INTER_AREA )
  12.         ksize = 2, func = linear_tab[depth];
  13.     else
  14.         CV_Error( CV_StsBadArg, "Unknown interpolation method" );
  15.     ksize2 = ksize/2;
  16.  
  17.     CV_Assert( func != 0 ); // line 1980
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement