[scilab-Users] Returning matrix of unknown dimensions from C library
Antoine Monmayrant
antoine.monmayrant at laas.fr
Mon Nov 21 14:36:38 CET 2011
Le 21/11/2011 14:34, jasper van baten a écrit :
> Antoine,
>
> One solution is make a script that calls two functions in your C
> library. The first external function call returns the dimensions, the
> second one gets called with an allocated matrix of the proper size and
> sets the data,
>
> Best wishes,
>
> Jasper.
Thanks for your quick answer.
That's what I am currently doing, but I was wondering whether I could
find something a bit more elegant!
Antoine
>
> On 11/21/2011 14:29, Antoine Monmayrant wrote:
>> Hi everyone,
>>
>> I am trying to extend scilab using a C library (libtiff to read
>> 16bits tiff images).
>> I have a problem using ilib_for_link/call:
>> Is there a way to call a C function that returns a matrix without
>> knowing a priori its width and height?
>>
>> Cheers,
>>
>> Antoine
>>
>>
>
More information about the users
mailing list