当前位置:网站首页>VTK:Could not locate vtkTextRenderer object.
VTK:Could not locate vtkTextRenderer object.
2022-07-31 05:15:00 【龙虾在剥我的壳】
VTK修炼笔记—报错: Could not locate vtkTextRenderer object.
一.问题描述
当我在进行图片处理时,需要获取图片像素位置。运行项目,发现只有图片,没有相关文字信息,并且报了以下错误:Could not locate vtkTextRenderer object.
此时图中并没有我想要的像素地址。
二、解决思路
根据报的错误分析,此问题并不是代码类、语法或者逻辑上的问题,而是缺少了东西,查了资料并思考了一下应该是缺失一些初始化的头文件而导致的错误,需要在main函数中先添加初始化头文件。
三、解决方案
在头文件加入:
#include <vtkAutoInit.h>
VTK_MODULE_INIT(vtkRenderingFreeType)
成功解决!
今天开始,我会把VTK学习道路上遇到的一些有趣、有意义的东西记录下来,和各位交流学习,如有错误,欢迎各位大佬批评指正!
边栏推荐
- Chinese garbled solution in UTF-8 environment in Powershell
- Artifact SSMwar exploded Error deploying artifact.See server log for details
- 一个简单的bash转powershell案例
- 2021 Mianjing - Embrace Change
- Android软件安全与逆向分析阅读笔记
- Filter out egrep itself when using ps | egrep
- 对js的数组的理解
- VS通过ODBC连接MYSQL(一)
- sql 添加 default 约束
- js中流程控制语句
猜你喜欢
数据库 | SQL增删改查基础语法
自定dialog 布局没有居中解决方案
Build DVWA with phpstudy
【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
MySQL compressed package installation, fool teaching
MySQL-如何分库分表?一看就懂
Xiaomi mobile phone SMS location service activation failed
Principle analysis of famous website msdn.itellyou.cn
[Cloud native] Open source data analysis SPL easily copes with T+0
为什么bash中的read要配合while才能读取/dev/stdin的内容
随机推荐
qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write
安装Multisim出现 No software will be installed or removed解决方法
mysql common commands
cocos2d-x-3.2 Physics
[Cloud native] Simple introduction and use of microservice Nacos
mysql password modification method in Linux (pro-test available)
Several forms of Attribute Changer
计网 Packet Tracer仿真 | 简单易懂集线器和交换机对比(理论+仿真)
quick-3.5 lua调用c++
What is the difference between NFT and digital collection?
"limit" query in Oracle database
腾讯云GPU桌面服务器驱动安装
[Ubuntu20.04 installs MySQL and MySQL-workbench visualization tool]
What is an EVM Compatible Chain?
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
Understanding of js arrays
break and continue exit in js
MySQL高级语句(一)
Why does read in bash need to cooperate with while to read the contents of /dev/stdin
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下