[Top][All Lists]

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

Re: Image display with pixel indices and values?

From: Andreas Weber
Subject: Re: Image display with pixel indices and values?
Date: Tue, 30 Dec 2014 16:18:30 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Icedove/31.3.0

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/

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

-- Andy

reply via email to

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