Re: [osg-users] SetImage problem

2010-06-01 Thread Osman Hancer
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

[osg-users] SetImage problem

2010-05-31 Thread Osman Hancer
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