Hi 陈卿 and All,
Yes, I mean writing a Mat object to SD card. I suppose to use
imwrite("/sdcard/Pictures/filename.png", m_yuv);
But I am not sure whether I could use "imwrite" this way in
Android NDK (as Android has some file permission issues, I am not sure
if NDK could write a file directly to an external storage location.)
Lawrence
> 在 2011年12月31日 下午2:07,陈卿 <
chenqing1...@gmail.com>写道:
>
>
>
>
>
>
>
> > I use this method !
> > if 1 channel mat...
> > (colorZoomImg.data + colorZoomImg.step * i)[j * colorZoomImg.channels() ];
>
> > if 4 channels mat...alpha is ignored!
> > (colorZoomImg.data + colorZoomImg.step * i)[j * colorZoomImg.channels()+0
> > ];
> > (colorZoomImg.data + colorZoomImg.step * i)[j * colorZoomImg.channels()+1
> > ];
> > (colorZoomImg.data + colorZoomImg.step * i)[j * colorZoomImg.channels()+2
> > ];
>
> > have a try! good luck!
>
> > 2011/12/31 Lawrence Tsang <
tkwi...@gmail.com>