Hi Sir,
Sorry for my mistake. As I am new in this platform so I am unable to adopt the etiquette so quickly but I will learn this definitely.
As I followed your instructions and wrote a demo code in C++. I am attaching the code below for your reference :
#include <octave/oct.h>
#include <octave/octave.h>
#include <octave/parse.h>
#include <octave/interpreter.h>
#include <octave/toplev.h>
#include <octave/builtin-defun-decls.h>
#include <iostream>
int main() {
string_vector argv (2);
argv(0) = "embedded";
argv(1) = "-q"; // quiet
octave_main (2, argv.c_str_vec (), true);
octave_value_list ov;
ov(0) = "load";
ov(1) = "image";
interp.feval("pkg",ov,0);
octave_value_list in;
for (octave_idx_type i = 0; i < 2; i++)
in(i) = octave_value (5 * (i + 2));
octave_value_list out;
out = interp.feval("imregionalmax",ov,0); // as I want to use imregionalmax
return 0;
}
I run this code in ubuntu 18.04 terminal by command : "mkoctfile --link-stand-alone file_nape.cpp -o file_name" but I got this error :
Please help me in this to execute.
with regards,
Siddhartha Roy
Associate Software Engineer
Vehere Interactive Pvt. Ltd.