博客
关于我
OpenCV-Python中预览超大图的程序实现方法
阅读量:118 次
发布时间:2019-02-26

本文共 465 字,大约阅读时间需要 1 分钟。

☞ ░ ░

一、引言

由于OpenCV的图像展示一张图像一个窗口,每个窗口无法展现超出屏幕范围大小的图像,并且有时需要将图像同窗口对比以查看不同的效果,因此需要自己去实现相关功能,为此老猿自实现了多图同屏自动排列展示的相关函数,用于图像预览。

二、函数简介

  1. previewImg(img):调用操作系统缺省图像阅读器展示图像
  2. preparePreviewImg(imgTitle=None,img=None,firstImg=False):将要多图合并展现的图片加到展现列表,如果img为None,则图像换行展现,否则图像根据大小自动排列,imgTitle为图像的说明,添加在图像的下方
  3. previewImgList():将展现列表中的图片合并进行展现,展现的图像下面增加图像说明的文字,展现后清空展现列表
  4. imgAddText:给图像增加文字说明

真正调用时,先使用preparePreviewImg将图像加到列表,再使用previewImgList合并后预览,其他函数无需关注,具体使用请参考下面传送门下其他相关博文。

三、实

转载地址:http://dcxk.baihongyu.com/

你可能感兴趣的文章
no connection could be made because the target machine actively refused it.问题解决
查看>>
No Datastore Session bound to thread, and configuration does not allow creation of non-transactional
查看>>
No fallbackFactory instance of type class com.ruoyi---SpringCloud Alibaba_若依微服务框架改造---工作笔记005
查看>>
No Feign Client for loadBalancing defined. Did you forget to include spring-cloud-starter-loadbalanc
查看>>
No mapping found for HTTP request with URI [/...] in DispatcherServlet with name ...的解决方法
查看>>
No mapping found for HTTP request with URI [/logout.do] in DispatcherServlet with name 'springmvc'
查看>>
No module named 'crispy_forms'等使用pycharm开发
查看>>
No module named cv2
查看>>
No module named tensorboard.main在安装tensorboardX的时候遇到的问题
查看>>
No module named ‘MySQLdb‘错误解决No module named ‘MySQLdb‘错误解决
查看>>
No new migrations found. Your system is up-to-date.
查看>>
No qualifying bean of type XXX found for dependency XXX.
查看>>
No qualifying bean of type ‘com.netflix.discovery.AbstractDiscoveryClientOptionalArgs<?>‘ available
查看>>
No resource identifier found for attribute 'srcCompat' in package的解决办法
查看>>
no session found for current thread
查看>>
no such file or directory AndroidManifest.xml
查看>>
No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android
查看>>
NO.23 ZenTaoPHP目录结构
查看>>
no1
查看>>
NO32 网络层次及OSI7层模型--TCP三次握手四次断开--子网划分
查看>>