We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://github.com/spmallick/learnopencv/blob/97f89ca715711f5c1658bb330f8f16a5a6273fd4/VideoStabilization/video_stabilization.cpp#L264C1-L265C1
The number of transforms and transforms_smooth is 2 less than the total number of frames.
for(int i = 1; i < n_frames-1; i++)
When writing out the frames, the loop is using n_frames as the count, so accessing transforms_smooth[i] will overrun the array when i == n_frames - 2.
for( int i = 0; i < n_frames-1; i++) { ... transforms_smooth[i].getTransform(T);
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://github.com/spmallick/learnopencv/blob/97f89ca715711f5c1658bb330f8f16a5a6273fd4/VideoStabilization/video_stabilization.cpp#L264C1-L265C1
The number of transforms and transforms_smooth is 2 less than the total number of frames.
for(int i = 1; i < n_frames-1; i++)
When writing out the frames, the loop is using n_frames as the count, so accessing transforms_smooth[i] will overrun the array when i == n_frames - 2.
for( int i = 0; i < n_frames-1; i++) { ... transforms_smooth[i].getTransform(T);
The text was updated successfully, but these errors were encountered: