Question: Making a Gtk+ application interacts with octave



Hello:

This is what I want to do:

I want to rewrite the imshow Octave's command.
I want a Gtk+ application to show an image given by octave in this way:

gtk_imshow (x, r,c);    % the command shows the image x and finished
                        % but the windows is still alive

where:
        x is a octave's RxC matrix (gray image)
        r and c the rows and columns of the matrix

OK. This is the question:
octave is an interpreter, I have written a little application to show an
image. But a want to keep the window alive when my function gtk_imshow
is finished.

        I'd like to work in this way with Octave, for example:

        gtk_imshow (x, r,c);
        pause
        gtk_imshow (x.*2, r,c);
        pause
        gtk_imshow (a_beautiful_filter(x), r,c);

(Want this code working allways with the same Gtk+ window...)

What I have to do?

        - Pthreads ?
        - Any other strategy ?
        - ...

--
Antonio Martinez Alvarez




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