2017-05-17 18:51:36 -0600 | commented question | Some resolutions cause segmentation faults in DISOpticalFlow() I have updated my question with entirely implementable code snippet and compilation details. This is based off of the TEST_PERF for the optflow modules, but is same principle as the opencv_contrib example you provided. It's worth noting that I'm passing cv::Mat::zero() images to the function, and it deals with this fine at certain resolutions producing a flow estimate of 0. |
2017-05-17 18:48:51 -0600 | received badge | ● Editor (source) |
2017-05-17 10:33:20 -0600 | received badge | ● Student (source) |
2017-05-17 03:07:49 -0600 | commented question | Some resolutions cause segmentation faults in DISOpticalFlow() Yes, I'm sure that the video files are correct. My own OF algorithm, Lucas-Kanade, Farneback, DeepFlow and DenseFlow all have no problems. Custom file format, custom video stream, cast in this instance to CV_8UC1. I can run my data through DIS at 720x144 and it doesn't have a problem, but I require 750x144 (among other resolutions). No stack trace available at this stage, which is strange for OpenCV. If I had a stack trace I could possibly track down the problem in the source code and fix it myself. |
2017-05-16 23:55:42 -0600 | asked a question | Some resolutions cause segmentation faults in DISOpticalFlow() EDIT 1: Changed code snippet for complete reproducibility and added G++ compile also. Hi, I'm having a weird problem with the Dense-Inverse-Search (DIS) optical flow implementation. Certain resolutions are causing a 'Segmentation fault (core dumped)' condition. The resolution of my video stream varies from 210 x 36 up to 750 x 144 between datasets. In example, if I run 720 x 144, no problems. 724 x 144, no problems. 725 x 144, Segmentation fault. However, larger resolutions, such as the 1024 x 436 used in the original DIS-flow paper, do not pose a problem. Is there some undocumented requirement for aspect ratio? Or minimum number of rows? Any help would be greatly appreciated. Original Git pull request for DIS-flow: https://github.com/opencv/opencv_cont... OpenCV API Class Reference for DISOpticalFlow(): http://docs.opencv.org/trunk/da/d06/c... Minimalist code to reproduce problem: Compiled on Ubuntu MATE 16.04.1 (kernel 4.8.0-51-generic) using: OpenCV build details (newest Git repository as of this time): (more) |