"Christian Rumpf" writes:

> Hello!
>
> For one of my project I want to create an average image consisting of 10 
> images captured by a static camera to erase camera noise. I tried this stuff 
> with OpenCV (http://opencv.willowgarage.com/wiki/) and its cv::Mat class and 
> it worked well.
>
> I want to do the same with OSG by loading 10 PNGs into an array with 
> osgDB::readImageFile("pic.png") and recognized a big problem. For some 
> reasons osg::Image doesn't use methods to change pixel color, but only to get 
> pixel color (osg::Image::getColor(...)), and it doesn't return a reference.
>
> Do you have any idea how to change pixel colors?

Hi Christian,

accessing the raw image data with osg::Image::data() could be what you
are after.  Nevertheless, that implies that you have to deal with the
internal format of the image.

-- 
Alberto

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to