lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On Fri, Sep 28, 2012 at 1:50 AM, Tom <tmbdev@gmail.com> wrote:
> data,w,h = opencv_image:to_typed_array()
> img = ImageMagick(data,{w,h})

note that even in C it's a very rare coincidence when unrelated
libraries are so interoperable.  usually either you have to transform
data or you could have luck and one of the libraries do know about the
other and includes the requisite transformation.

that's also what happens in Python, where PIL (not to be confused with
PiL, the book) is so well known that every other library that does
anything with images have some way to interoperate with it.  But
that's because of popularity, not about any underlying common data
standard.

-- 
Javier