|
From: | Alasdair McAndrew |
Subject: | Re: Image display with pixel indices and values? |
Date: | Wed, 31 Dec 2014 22:57:38 +1100 |
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
[Prev in Thread] | Current Thread | [Next in Thread] |