Entering edit mode
Peter Hietz
▴
10
@peter-hietz-2576
Last seen 10.2 years ago
Hi,
I am using the EBImage package for image display and analysis and want
to read the cursor (mouse) position on the image. The R-function
"locator()" would be ideal, but this appears to work only on plots,
not
images.
> a <- Image((0:(w^2))/w^2, c(w,w))
> if ( interactive() ) display(a)
> locator(n = 10, type = "p")
Error in locator(n = 10, type = "p") : plot.new has not been called
yet
Is there a similar function that works with dispalyed images ?
thanks
Peter
----------------------------------------------------
Peter Hietz
Institute of Botany
University of Natural Resources
and Applied Life Sciences
Gregor Mendel-Str.33
1180 Vienna, Austria
tel: +43-1-47654-3154
fax: +43-1-47654-3180
email: peter.hietz at boku.ac.at