当前位置:网站首页>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
边栏推荐
- Small file special
- 值得关注的15种软件测试趋势
- 小文件专项
- 游戏测试相关 测试一个英雄的技能(春招被问比较多的一道题)
- 多路IO转接——前导
- Traversal of map set
- What is the salary level of 17k? Let's take a look at the whole interview process of post-95 Test Engineers
- [true question of the Blue Bridge Cup trials 44] scratch eliminate the skeleton Legion children programming explanation of the true question of the Blue Bridge Cup trials
- 有些能力,是工作中学不来的,看看这篇超过90%同行
- File upload and download test point
猜你喜欢
Programming examples of stm32f1 and stm32subeide -tm1637 drives 4-bit 7-segment nixie tubes
Traversal of map set
After 8 years of industry thinking, the test director has a deeper understanding of test thinking
QT:QSS自定义 QTabWidget 和 QTabBar实例
What happened to those who focused on automated testing?
UI interface design related knowledge (I)
你真的需要自动化测试吗?
Is it OK to test the zero basis software?
Take you into the cloud native database industry, Amazon Aurora
MySql 怎么查出符合条件的最新的数据行?
随机推荐
sqlmap基本使用方法
【蓝桥杯选拔赛真题44】Scratch消灭骷髅军团 少儿编程scratch蓝桥杯选拔赛真题讲解
Extern keyword
Promoted, colleagues become subordinates and don't cooperate with work
T5 attempt
UI自动化测试如何走出困境?价值又如何体现?
Que se passe - t - il ensuite pour ceux qui se sont concentrés sur les tests automatisés?
snownlp情感分析
Qt:qss custom qpprogressbar instance
Game test related tests a hero's skills (spring moves are asked more questions)
Flink <-->Redis的使用介绍+with参数
Qt:qss custom qlistview instance
值得关注的15种软件测试趋势
Basic theoretical knowledge of software testing -- app testing
QT:QSS自定义QHeaderView实例
Software testing (test case) writing: vulgar, native and skillful
How does MySQL find the latest data row that meets the conditions?
QT: QSS custom qsplitter instance
QT: QSS custom qtoolbar and qtoolbox instances
Overview of testing theory