Re: Cairo and OPenCV

Deepak Kumar JAIN <[email protected]>
Newsgroups gmane.comp.lib.cairo
Message-ID <CA+5sP9_HkXe4QoA5A8LPb=p-c+0+zuFZ=OdPztiN5p4RWXJ3=w@mail.gmail.com>
Hello Bill,
Thanks for the reply.

When I write the text in black in Cairo and see the resultant image in
OpenCV, the text is becomes white.
Also the stride factor is always confusing me and also the BIt Depth in
openCV and Cairo.

Can you please tell about that?

Thanks,
Deepak

On Fri, Sep 9, 2011 at 7:33 PM, Bill Spitzak <[email protected]> wrote:

> Draw a rectangle to make sure the problem is not text-only. It might also
> show more clearly if the skew is caused by a wrong stride factor.
>
> Also useful is to draw solid red, green, blue rectangles, to check for the
> channels being in the wrong order. Or draw the text "red" in red, etc, to
> make sure the colors are not confused.
>
> Deepak Kumar JAIN wrote:
>
>> Hello All,
>>
>> Have anyone worked with Cairo with OpenCV. I am trying to load an jpg
>> image through OpenCv and then creating the image surface through image data.
>> After putting some text on the surface, I am again trying to copy the image
>> surface into openCv image format so that i can save the resultant image into
>> Jpeg format. But when I see the image, I see the text but its distorted and
>> seems like some loss of data occurred. I am trying to see into it but I am
>> not able to figure out where is the data loss occurring.
>>
>> It will be of immense help to me if someone can through some light on
>> where I can go wrong.
>>
>> Thanks & regards,
>> Deepak Kumar JAIN
>>
>> --
>> www.deepakkumarjain.co.cc <http://www.deepakkumarjain.**co.cc<http://www.deepakkumarjain.co.cc>
>> >
>>
>>
>> "/I err therefore I am /"- Saint Augustine
>>
>>
>> ------------------------------**------------------------------**
>> ------------
>>
>> --
>> cairo mailing list
>> [email protected]
>> http://lists.cairographics.**org/mailman/listinfo/cairo<http://lists.cairographics.org/mailman/listinfo/cairo>
>>
>


-- 

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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.