Re: Pixels data mismatch while loading image with OpenCv and CairoGraphics
Maarten Bosmans <[email protected]>
| Newsgroups | gmane.comp.lib.cairo |
|---|---|
| Message-ID | <CA+CvcKSvsvPZcCxU_G0JaRzSaPBjbLhyY+czFa86z8ZHqwM-VA@mail.gmail.com> |
2011/9/14 Deepak Kumar JAIN <[email protected]>: > Hello All, > > When I load the same png image in OpenCV and cairoGraphics, I see that the > data of the image is not same. > > > http://postimage.org/image/vlpntz38/ > > Image can be seen here. I see that every 4th data entry in after I get data > from surface has value of 255. I dont know why. > > Can anyone give the explanation of this? OpenCV is probably expecting RGB, while cairo is providing ARGB data. Try constructing a 24bpp ImageSurface. Maarten > Thanks, > Deepak > > > > -- > > Thanks & Regards, > Deepak Kumar JAIN > Internship student, > Orange Labs,France Telecom, > Rennes, France > Contact: +33(0)6 31 15 44 66 > www.deepakkumarjain.co.cc > > "I err therefore I am "- Saint Augustine > > > -- > cairo mailing list > [email protected] > http://lists.cairographics.org/mailman/listinfo/cairo > -- cairo mailing list [email protected] http://lists.cairographics.org/mailman/listinfo/cairo