On Thu, 26 Sep 2013 13:05:48 +0200 Nicolas ALCOUFFE
said:
> Ok, it is working perfectly with:
>
> evas_object_image_size_set(evas_image, opencv_image.size().width,
> opencv_image.size().height);
> if (opencv_image.data) {
> evas_object_image_data_copy_set(evas_image, opencv_i
Ok, it is working perfectly with:
evas_object_image_size_set(evas_image, opencv_image.size().width,
opencv_image.size().height);
if (opencv_image.data) {
evas_object_image_data_copy_set(evas_image, opencv_image.data);
evas_object_image_data_update_add(evas_image, 0, 0,
On Thu, 26 Sep 2013 12:18:57 +0200 Nicolas ALCOUFFE
said:
when you set the image data, evas doesnt COPY it... it refers to it. directly.
at any point that image object may possibly need to be rendered evas will need
access to the image data pointer and it must be VALID at all times until the
imag
What do you mean ?
> you're freeing your image data before it gets rendered.
>
>
> On Thu, Sep 26, 2013 at 10:58 AM, Nicolas ALCOUFFE > wrote:
>> Hi,
>>
>> For some reason, i need to convert an OpenCV image to Evas Image, i do:
>>
>> opencv_image = imread("fruits.jpg", 1);
>> cvtColor(opencv_image,
you're freeing your image data before it gets rendered.
On Thu, Sep 26, 2013 at 10:58 AM, Nicolas ALCOUFFE wrote:
> Hi,
>
> For some reason, i need to convert an OpenCV image to Evas Image, i do:
>
> opencv_image = imread("fruits.jpg", 1);
> cvtColor(opencv_image, opencv_image, CV_BGR2BGRA);
>
Hi,
For some reason, i need to convert an OpenCV image to Evas Image, i do:
opencv_image = imread("fruits.jpg", 1);
cvtColor(opencv_image, opencv_image, CV_BGR2BGRA);
evas_image = evas_object_image_add(canvas);
evas_object_image_colorspace_set(evas_image, EVAS_COLORSPACE_ARGB);
evas_object_i