当前位置:网站首页>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学习道路上遇到的一些有趣、有意义的东西记录下来,和各位交流学习,如有错误,欢迎各位大佬批评指正!
边栏推荐
- DeFi Token in the project management
- Linux modify MySQL database password
- sqlite 查看表结构 android.database.sqlite.SQLiteException: table splitTable has no column named
- VS通过ODBC连接MYSQL(二)
- Why does read in bash need to cooperate with while to read the contents of /dev/stdin
- sql 添加 default 约束
- sql add default constraint
- 360 加固 file path not exists.
- 【uiautomation】微信好友列表获取(存储到txt中)
- "limit" query in Oracle database
猜你喜欢

How MySQL - depots table?A look at will understand

MySQL高级语句(一)

qt:cannot open C:\Users\某某某\AppData\Local\Temp\main.obj.15576.16.jom for write

What is the difference between NFT and digital collection?

腾讯云GPU桌面服务器驱动安装

Notes on creating a new virtual machine in Hyper-V

unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下

GUCCI, LV and other luxury giant universe how to layout yuan, other brands should keep up with?

VS通过ODBC连接MYSQL(二)

【云原生】原来2020.0.X版本开始的OpenFeign底层不再使用Ribbon了
随机推荐
MySQL高级语句(一)
js中流程控制语句
ERROR Error: No module factory availabl at Object.PROJECT_CONFIG_JSON_NOT_VALID_OR_NOT_EXIST ‘Error
MySQL-如何分库分表?一看就懂
通信原理——纠错编码 | 汉明码(海明码)手算详解
sqlmap injection tutorial common commands
unicloud 发布后小程序提示连接本地调试服务失败,请检查客户端是否和主机在同一局域网下
npm WARN config global `--global`, `--local` are deprecated. Use `--location solution
Hyper-V新建虚拟机注意事项
Markdown help documentation
js中的break与continue退出
quick-3.6源码修改纪录
js中的this指向与原型对象
mysql password modification method in Linux (pro-test available)
[Elastic-Job source code analysis] - job listener
VS通过ODBC连接MYSQL(二)
(Crypto essential dry goods) Detailed analysis of the current NFT trading markets
Take you to understand the MySQL isolation level, what happens when two transactions operate on the same row of data at the same time?
Getting to know regular expressions
On the side of Ali, tell me what are the application scenarios of message middleware you know?