cvline bug (Bug #1429)
Description
cvLine(img0, /* the dest image /
cvPoint(10, 10), / start point /
cvPoint(60, 60), / end point /
cvScalar(0, 255, 0, 0), / the color; green /
4, 8, 0); / thickness, line type, shift */
it works if i change the thickness into 1. but with every other value the program compiles but when i run it crushes. is this a bug? how can i draw k thicker line?
Associated revisions
Merge pull request #1429 from nzjrs:fix-sketcher
History
Updated by Kazuki Matsuda about 13 years ago
Those code is work fine in my environment without crushing.
My environment is
OpenCV Ver: trunk, rev7054, self build
Compiler: Visual Studio 2010
bits and compiler: x86 debug, x86 release, x64 debug and x64 release.
Do you have any error message?
#include <opencv2/opencv.hpp> int main(int argc, char* argv[]) { cv::Mat img0(128, 128, CV_8UC3); cvLine(&(img0.operator [[IplImage]]()), /* the dest image */ cvPoint(10, 10), /* start point */ cvPoint(60, 60), /* end point */ cvScalar(0, 255, 0, 0), /* the color; green */ 4, 8, 0); /* thickness, line type, shift */ cv::imshow("TEST", img0); cv::waitKey(); }
Image(line.png)
Updated by Andrey Kamaev almost 13 years ago
Also can not reproduce. Closing because of inactivity.
- Status changed from Open to Cancelled
- Target version set to 2.4.0
- Assignee changed from Vadim Pisarevsky to Andrey Kamaev