octave-maintainers
[Top][All Lists]
Advanced

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

Re: Seeking help in Octave C++ API


From: Siddhartha Roy
Subject: Re: Seeking help in Octave C++ API
Date: Fri, 2 Apr 2021 15:14:21 +0530

Hi Carnë,
Thanks for your response. I want to make use of the octave function and I want to call it from my C++ code. I know my code will then depend upon octave libraries but it doesn't matter. I recently went through the link "https://octave.sourceforge.io/coda/c58.html" and I saw the example of C++ code  of matpow function. In the same way I want to call imregionalmax function. But I found out that this function is a part of image package of octave. So I downloaded image-2.12.0 and inside that folder I found out a c++ file imreconstruct.cc & imreconstruct function is used in the implementation of imregionalmax in octave. So, now, if I can call imreconstruct like matpow function in c++ code (using octave library) then I can also build imregionalmax function.
So, please help me in calling the imreconstruct function from C++ code using octave API or imregionalmax function directly. It will be very helpful for me if you provide a demo C++ code.
Thanking you.
Your response will be highly appreciated.

with regards,
Siddhartha Roy
Associate Software Engineer
Vehere Interactive Pvt. Ltd.


On Thu, Apr 1, 2021 at 9:20 PM Carnë Draug <carandraug@octave.org> wrote:
On Thu, 1 Apr 2021 at 16:26, Siddhartha Roy <roysiddhartha123@gmail.com> wrote:
> Hi Sir/Madam,
>
> I am trying to call the octave function
> "imregionalmax" in a C++ code. I have seen that, how to call "gcd"
> using fevel(). In that same way I am trying to call imregionalmax
> function but I am unable to do that. Can anyone please help me how
> to call "imregionalmax" function from a C++ code using Octave API. I
> am using ubuntu 18.04 and the version of octave is 4.2.2.
>
> Please provide a demo code if possible which will work.
> Your response will be highly appreciated.
> Thanking You.
>
> with regards,
> Siddhartha Roy
> Associate Software Engineer
> Vehere Interactive Pvt. Ltd.

Hi Sidhartha

Note that while it's doable to call Octave functions in a C++ program,
that will make your program dependent on the Octave libraries.  This
means that your program will bound by Octave's GPL.

I'm pointing this out because Anurag Shivam Prasad, also from Vehere,
has recently contacted me about a C++ implementation of imregionalmax.
One of the requirements was that it wouldn't be dependent on Octave so
that it could later be commercialised.  The route you're trying, i.e.,
using Octave's C++ API, will not work if that goal remains.

Best regards
David

reply via email to

[Prev in Thread] Current Thread [Next in Thread]