简体   繁体   English

获取uint8 Mat的像素值

[英]get pixel value of an uint8 Mat

In some other threads I read that a uint8 element can be accessed by 在其他一些线程中,我读到可以访问uint8元素

value = myMat.at<uint8_t>(Point(x,y));

My system doesn't recognize uint8_t as an datatype. 我的系统无法将uint8_t识别为数据类型。 Do I have to include something or do I have to use another datatype? 我是否必须包含某些内容或者是否必须使用其他数据类型?

uint8_t is defined inside cstdint . uint8_tcstdint定义。 So, you need to use #include <cstdint> 因此,您需要使用#include <cstdint>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM