Hi,

I am using the EBImage package for image display and analysis and want to read 
the cursor (mouse) position on the image. The 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: [EMAIL PROTECTED]

______________________________________________
R-help@r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.

Reply via email to