help-octave
[Top][All Lists]
Advanced

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

embedded octave .m function in c++ code


From: LARTAUD PIERRE-JEAN p0900825
Subject: embedded octave .m function in c++ code
Date: Thu, 4 Jan 2018 19:15:45 +0000

Hi everyone,

I’m a student in final year of engineering school, and I’m working on a program to count cells in a blood sample, using image processing. 
I’ve coded a self-made function ‘count.m’ which use a lot of different functions from the Image package of octave.
This function just takes the path of the image file as input, and gives the counts (number of red blood cells, white blood cells and thrombocytes) as output. 

Now, to connect my work to some other functions I’ve coded, I need to call my count.m function in C++.
The idea is to get the path of the image as a string, use my count.m function, and then get the counts back in C++.

I have already read a lot about standalone programs, here —> https://www.gnu.org/software/octave/doc/v4.0.3/Standalone-Programs.html#Standalone-Programs
I’ve been able to make the given (second one) example work without troubles, but I don’t understand how to fit it to my need.

Could anyone help me please ?

I’m running on Xubuntu 16.04 and Octave 4.0.0.
I’ve installed the octave dev package. 

Thanks a lot,

PJ Lartaud


reply via email to

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