<Documentation code sample bug>Histogram Calculation (Bug #2422)


Added by Recep Doga Siyli over 12 years ago. Updated about 12 years ago.


Status:Cancelled Start date:2012-10-09
Priority:Low Due date:
Assignee:Vsevolod Glumov % Done:

0%

Category:documentation
Target version:3.0
Affected version: Operating System:
Difficulty: HW Platform:
Pull request:

Description

Hi,

There becomes a heap allocation problem in the given code at the page :

http://docs.opencv.org/doc/tutorials/imgproc/histograms/histogram_calculation/histogram_calculation.html

how it is now :
/// Separate the image in 3 places ( B, G and R )
vector<Mat> bgr_planes;
split( src, bgr_planes );

how it should be :
/// Separate the image in 3 places ( B, G and R )
vector<Mat> bgr_planes*(3)*;
split( src, bgr_planes );


History

Updated by Andrey Kamaev about 12 years ago

The original code should work fine. Heap error usually means that OpenCV and your code are compiled with different versions of C++ runtime.

  • Status changed from Open to Cancelled
  • Target version set to 3.0

Also available in: Atom PDF