cvline bug (Bug #1429)


Added by lowe nick over 13 years ago. Updated almost 13 years ago.


Status:Cancelled Start date:
Priority:Low Due date:
Assignee:Andrey Kamaev % Done:

0%

Category:core
Target version:2.4.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

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?


line.png (8.7 kB) Kazuki Matsuda, 2011-12-15 03:18 am


Associated revisions

Revision ada858e1
Added by Roman Donchenko over 11 years ago

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

Also available in: Atom PDF