help-octave
[Top][All Lists]
Advanced

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

Re: Image display with pixel indices and values?


From: Alasdair McAndrew
Subject: Re: Image display with pixel indices and values?
Date: Wed, 31 Dec 2014 22:57:38 +1100

Thank you - but that's somewhat beyond my understanding at the moment.  On my system, the only init_fltk file is /usr/lib/x86_64-linux-gnu/octave/3.8.1/oct/x86_64-pc-linux-gnu/__init_fltk__.oct which is a binary file, and so doesn't help me much.  Can fltk callbacks be written from within octave itself?

Oh - I'm using Octave 3.8.1 under Ubuntu linux, 64 bit.  Normally I use the fltk toolkit, but I could switch to gnuplot if that would be easier.

Thanks again,
Alasdair

On Wed, Dec 31, 2014 at 2:18 AM, Andreas Weber <address@hidden> wrote:
Am 30.12.2014 um 15:04 schrieb Alasdair McAndrew:
> Is there some way of obtaining a display like "[118,151] = 198" (for
> grayscale images), or "[118, 151] = (127,35,210)" for RGB images?

I guess you are using the FLTK graphics_toolkit? Or gnuplot? Which
Octave version?

The text shown on the statusbar of the FLTK windows can't be changed at
the moment. It' programmed in libinterp/dldfcn/__init_fltk__.cc.

If you are using FLTK you can register a callback which is called when
the mouse is moved over the image. In this function you could round the
coordinates and also get the pixel value. To display the result use
printf, set the title or add text to the plot which is updated in the
callback.

-- Andy

_______________________________________________
Help-octave mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/help-octave



--
http://www.facebook.com/alasdair.mcandrew https://plus.google.com/+AlasdairMcAndrew/posts https://www.linkedin.com/pub/alasdair-mcandrew/a/178/108 https://twitter.com/amca01 http://numbersandshapes.net

reply via email to

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