Ask Your Question

Revision history [back]

Problem with example motempl.cpp

Hi,

I want to execute example motempl.cpp in module optflow. I have got an exception :

Unhandled exception at at 0x754E812F in optflow-example-motempl.exe: Microsoft C++ exception: cv::Exception at memory location 0x0011ECDC. This exception occurs after calling norm at line 123 of motempl.cpp :

count = norm( silh, 0, NORM_L1, 0 ); // calculate number of points within silhouette ROI

CV_Assert( _src1.sameSize(_src2) && _src1.type() == _src2.type() ) is 0 in cv::norm (line 3320 in opencv-master\modules\core\src\stat.cpp). _src1 is an array with size 0,0 in cv::norm. Before call parameters are good. Now I have found this link with an example of motion tracking. If I delete line 123 and I write like in this example

count = norm(silh_roi, NORM_L2, noArray());

There is no exception now. As I am not specialist of motion tracking I don't know If I can change this line. My questions are :

Have you got an exception in this example? Thanks for your help If yes Is it a good modification to solve exception and keep good result in this example?

Problem with example motempl.cpp

Hi,

I want to execute example motempl.cpp in module optflow. I have got an exception :

Unhandled exception at at 0x754E812F in optflow-example-motempl.exe: Microsoft C++ exception: cv::Exception at memory location 0x0011ECDC. This exception occurs after calling norm at line 123 of motempl.cpp :

count = norm( silh, 0, NORM_L1, 0 ); // calculate number of points within silhouette ROI

CV_Assert( _src1.sameSize(_src2) && _src1.type() == _src2.type() ) is 0 in cv::norm (line 3320 in opencv-master\modules\core\src\stat.cpp). _src1 is an array with size 0,0 in cv::norm. Before call parameters are good. Now I have found this link with an example of motion tracking. If I delete line 123 and I write like in this example

count = norm(silh_roi, NORM_L2, noArray());

There is no exception now. As I am not specialist of motion tracking I don't know If I can change this line. My questions are :

Have you got an exception in this example? Thanks for your help example?

If yes Is it a good modification to solve exception and keep good result in this example?

Thanks for your help

Problem with example motempl.cpp

Hi,

I want to execute example motempl.cpp in module optflow. I have got an exception :

Unhandled exception at at 0x754E812F in optflow-example-motempl.exe: Microsoft C++ exception: cv::Exception at memory location 0x0011ECDC. This exception occurs after calling norm at line 123 of motempl.cpp :

count = norm( silh, 0, NORM_L1, 0 ); // calculate number of points within silhouette ROI

CV_Assert( _src1.sameSize(_src2) && _src1.type() == _src2.type() ) is 0 in cv::norm (line 3320 in opencv-master\modules\core\src\stat.cpp). _src1 is an array with size 0,0 in cv::norm. Before call parameters are good. Now I have found this link with an example of motion tracking. If I delete line 123 and I write like in this example

count = norm(silh_roi, norm(silh, NORM_L2, noArray());

There is no exception now. As I am not specialist of motion tracking I don't know If I can change this line. My questions are :

Have you got an exception in this example?

If yes Is it a good modification to solve exception and keep good result in this example?

Thanks for your help