Display a picture

摘自 <<Learning OpenCV: Computer Vision in C++ with the OpenCV Library>>

#include "opencv2/highgui/highgui.hpp"

using namespace cv;

int main(int argc, char ** argv)
{
    Mat img = imread(argv[1] - 1);
    if(img.empty())  return -1;

    namedWindow("Example", CV_WINDOW_AUTOSIZE);

    imshow("Example", img);

    waitKey(0);
    destroyWindow("Example");
}
时间: 2024-10-17 17:31:39

Display a picture的相关文章

手机端上传相册图片

css: .upload-img{     width:80%;     position:fixed;     top:50%;     left:50%;     margin-left:-40%;     background-color: #fff;     border-radius: 10px;     z-index:1000;     display:none; } .upload-img>p:first-child{     height:50px;     line-heig

tensorflow学习

Q: What is Computational Graph?A: Computational Graph is a series of Tensorflow operations arranged into a graph of nodes. Q: How to building the Computational Graph?A: Each Node takes zeros or more tensors as inputs and produces a tensor as an outpu

STM32F429之LTDC驱动图解

本文基于ST官方demo板STM32F429 Discovery硬件平台,以看图说话的形式给大家讲解LTDC的主要参数配置.关于本文提到的代码部分均摘自本人另一片文章<STM32F429之LTDC代码模板>,LCD硬件为240x320,驱动IC为ili9341.本文目的意在让大家通过几张图就能掌握STM32F429 LTDC控制器的配置要领,而从干涩的文字中解脱出来,方便记忆.当然本文只是讲解了LTDC一些常用的设置,关于更多细节的操作还是得参照ST的官方datasheet. 一.关于LTDC

A Tour of Go Exercise: Slices

Implement Pic. It should return a slice of length dy, each element of which is a slice of dx 8-bit unsigned integers. When you run the program, it will display your picture, interpreting the integers as grayscale (well, bluescale) values. The choice

vlc 网页插件的 使用与控制 API http://www.xuebuyuan.com/2224602.html

不知道vlc 是什么的请百度一下.. vlc 提供了ie浏览器的activeX插件和火狐或者chrome的插件,基本上覆盖了所有浏览器,所以有复杂解码需求的情况下用vlc来解决网页播放视频,也是一种没办法的办法. 下面开始使用教程: html文档结构: <object class="vlc" type='application/x-vlc-plugin' events='True' width="720" height="540">

嵌入式 vlc从接收到数据流到播放视频的过程分析(经典)

个人整理: Vlc流播放流程 vlc源码目录树: 目录名称 说明 bindings Java, CIL 和Python绑定 doc 帮助文档 (不是更新的) extras 另叙. include VLC 头文件 libs SRTP库和装载库 lxdialog 制作 menuconfig的文件 m4 Automake和autoconf的宏文件 modules 除了src目录外最重要的目录.参考“功能模块目录树”一节 po i18n (语言翻译)文件 projects 建立在 libvlc的项目,如

wesome-android

awesome-android Introduction android libs from github System requirements Android Notice If the lib is no longer being maintained,please do not add it here. How To Contribute Step 1. Add a Item as follows: **Library Name**[one space]Short Description

VLC播放器web插件接口(Part1)

本文转自:http://blog.csdn.net/xiaoxiaoxuewen/article/details/7698803Embed tag attributesTo embed the plugin into a webpage use the following <embed> template:<embed type="application/x-vlc-plugin" pluginspage="http://www.videolan.org&q

GitHub中常用开源库

awesome-android Introduction android libs from github System requirements Android Notice If the lib is no longer being maintained,please do not add it here. Libs Table of contents Framework EventBus Orm Image Loading Animations Network Widget Materia