当前位置:网站首页>Imread change image display size
Imread change image display size
2022-07-03 10:59:00 【33-Hope】
Pretty simple , But not , It's been checked for a long time , sad , Write to yourself
int main()
{
Mat girl = imread("F:/VSMaven/LocateQr/Location/Location/phone.jpg", IMREAD_REDUCED_COLOR_2); // Load image to Mat
if (girl.empty()) {
printf(" No such picture , Please check that the path is correct ");
return -1;
}
else {
namedWindow("enhanced", 0);
resizeWindow("enhanced", 300, 400);// What's shown is 300*400 Size , Drag and drop
imshow("enhanced", girl);// The display name is "enhanced" The window of
}
waitKey(0);
return 0;
yes else The three sentences in , The size can be set by yourself
边栏推荐
猜你喜欢

最高月薪18K 拥有好的“心态和选择”, 成功就差“认真和坚持”~

如何在游戏中制作一个血条

如何监测服务器主机的进出流量?
Redis 笔记 01:入门篇

What kind of living condition is a tester with a monthly salary of more than 10000?

ByteDance layoffs, test engineers were almost destroyed: how terrible is the routine behind the recruitment of large factories?

Is it OK to test the zero basis software?

MySql 怎么查出符合条件的最新的数据行?

游戏测试相关 测试一个英雄的技能(春招被问比较多的一道题)

Large scale e-commerce project - environment construction
随机推荐
Pour vous amener dans le monde des bases de données natives du cloud
Flink--自定义函数
我对测试工作的一些认识(资深测试人员总结)
Que se passe - t - il ensuite pour ceux qui se sont concentrés sur les tests automatisés?
Take you into the cloud native database industry, Amazon Aurora
QT:QSS自定义QLineEdit实例
Traversal of map set
Qt:qss custom qmenubar instance
TypeScript学习总结
现在零基础转行软件测试还OK吗?
Windows security center open blank
Qt:qss custom qmenu instance
Communication software development and Application
值得关注的15种软件测试趋势
分组函数之rollup、cube函数、grouping sets函数
Buy health products for parents
如何在游戏中制作一个血条
First line of code kotlin notes
QT:QSS自定义 QRadioButton实例
Multiple IO transfer - preamble