Documente Academic
Documente Profesional
Documente Cultură
0-dev documentation
1 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
7/2/2016 11:41 AM
2 of 7
#include
#include
#include
#include
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
"opencv2/highgui.hpp"
"opencv2/imgproc.hpp"
<iostream>
<stdio.h>
7/2/2016 11:41 AM
3 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
result to [ 0, histImage.rows ]
b_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
g_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
r_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
7/2/2016 11:41 AM
4 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
vector<Mat> bgr_planes;
split( src, bgr_planes );
7/2/2016 11:41 AM
5 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
result to [ 0, histImage.rows ]
b_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
g_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
r_hist, 0, histImage.rows, NORM_MINMAX, -1, Mat() );
b_hist.at<float>(i)
b_hist.at<float>( i, j )
7/2/2016 11:41 AM
6 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
return 0;
7/2/2016 11:41 AM
7 of 7
http://docs.opencv.org/3.0-beta/doc/tutorials/imgproc/histograms/histog...
7/2/2016 11:41 AM