Getting raw pointer from boost::gil::view

2019-02-25 17:05发布

问题:

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.

回答1:

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



标签: c++ boost-gil