Skip to content
New issue

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

9.2.4绘制一维直方图 #7

Open
chasentech opened this issue Feb 9, 2018 · 0 comments
Open

9.2.4绘制一维直方图 #7

chasentech opened this issue Feb 9, 2018 · 0 comments

Comments

@chasentech
Copy link

第62行:
Mat dstImage(size * scale, size, CV_8U, Scalar(0));
我感觉有错误,应该是
Mat dstImage(size, size * scale, CV_8U, Scalar(0));

scale表示的是x方向的扩大倍数,而Mat构造函数第一个参数是rows,是y方向上的扩大倍数。今天晚上看着书调试时,将scale置为2,发现了这个问题。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant