Comments (3)
我这个BGR转RGB时,出来的结果64位的andorid系统正常,32位的左半边是正常,右半边被填充为全0了,希望官方能帮忙看看
from flycv.
补充一下:是32位的包跑在64位的机器上
from flycv.
测试代码段 fcv::Mat dst; fcv::Mat src = fcv::imread("user.jpg"); for (int i = 0; i < 20; ++i) { unsigned char* p = (unsigned char*)src.data(); int a = p[i]; std::cout << a << " "; } std::cout << std::endl; std::cout << "**__" <<std::endl; fcv::cvt_color(src, src, fcv::ColorConvertType::CVT_PA_BGR2PA_RGB); for (int i = 0; i < 20; ++i) { unsigned char_ p = (unsigned char_)src.data(); int a = p[i]; std::cout << a << " "; }
输出结果: 65 71 48 66 72 49 66 71 50 65 70 49 64 69 48 67 72 51 70 76
65 71 48 66 72 49 66 71 50 65 70 49 64 69 48 67 72 51 70 76
这种写法正确:
fcv::Mat dst;
fcv::cvt_color(src, dst, fcv::ColorConvertType::CVT_PA_BGR2PA_RGB);
src和dst不可以是同一个Mat,必须重新定义新的Mat
from flycv.
Related Issues (20)
- flycv 在rv1126 处理图片也不是很快 感觉跟 opecv 处理时间一样 HOT 3
- QNX交叉编译报错
- add_subdirectory方式编译出错 HOT 2
- warp_affine函数与opencv接口不一致
- 希望新增video io
- fcv::imwrite("xxx.jpg", mat)时图片过大 HOT 4
- cvt_color 转换格式 bgr2yuv HOT 2
- fcv::imread解码png图片 HOT 2
- 多线程稳定崩溃 HOT 6
- IOS中flycv读取图片时报错:Rebuild fcv with libjpeg-turbo! 和Input Mat of resize is empty! HOT 2
- 有没有文档图片矫正的功能 HOT 1
- X86平台下编译报错 HOT 1
- support cv::rectangle+cv::putText
- 请问编译armhf需要什么依赖库呢 HOT 1
- poly_lines 线条颜色怎么指定?
- 当前如何实现对灰度图的normalize
- copymakeborder新增其他模式
- 希望添加一下常用的滤波方法。
- 量化计算请问如何组合现有函数比较好?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flycv.