Hi,
On 01/06/10 07:48, Ulrich Hertlein wrote:
Hi Osman,
On 29/05/10 23:38 , Osman Hancer wrote:
then converted BGR to RGB color format by
cvCvtColor( cvImg, cvImg, CV_BGR2RGB );
then I used setImage to do the actual conversion.
osgImg-setImage(cvImg-width,cvImg-height, 3, GL_RGB, GL_RGB,
Hi all,
Thank you for your answers.
My image is 3 BytesPerPixel (24 BitsPerPixel) I am sure of that.
I chganged r to 1 or data type to IPL_DEPTH_16U and IPL_DEPTH_32U nothing
changed.
Do you have any other ideas?
Thanks jp for the tip I will use it.
Osman
--
Read this
Hi,
I want to convert an OpenCV IplImage to an OSG image. For this, I first fliped
image from top-left to bottom-left by
cvConvertImage(cvImg , cvImg, CV_CVTIMG_FLIP);
then converted BGR to RGB color format by
cvCvtColor( cvImg, cvImg, CV_BGR2RGB );
then I used setImage to do the actual
Selam Osman,
Did you try void osg::Image::setOrigin (
Originhttp://www.openscenegraph.org/documentation/OpenSceneGraphReferenceDocs/a00305.html#3eb3fb7f290c3b5ef6122b76d5fe6c69
*origin* ) [inline]function before convert TopLeft image to BottomLeft?
May be you won't need any flipping operation
Hi Osman,
On 29/05/10 23:38 , Osman Hancer wrote:
then converted BGR to RGB color format by
cvCvtColor( cvImg, cvImg, CV_BGR2RGB );
then I used setImage to do the actual conversion.
osgImg-setImage(cvImg-width,cvImg-height, 3, GL_RGB, GL_RGB,
5 matches
Mail list logo