从boost :: gil :: view获取原始指针 [英] Getting raw pointer from boost::gil::view

查看:89
本文介绍了从boost :: gil :: view获取原始指针的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个交错的boost::gil::view.我想从该视图构造我自己的模型,该模型接受原始像素数据的byte*.如何从boost::gil::view获取原始数据指针?我检查了它的接口,它返回了定位符和全部,但未返回原始数据指针.请帮忙.

I have a boost::gil::view which is interleaved. I want to construct my own model from this view which accepts the byte* of raw pixel data. How can I get the raw data pointer from boost::gil::view? I checked its interface, it returns locators and all, but not the raw data pointer. Please help.

推荐答案

我找到了解决方法.我用gilView.row_begin(0)

I found out the way to do it. I used gilView.row_begin(0)

这篇关于从boost :: gil :: view获取原始指针的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆