cursor position on image
1
0
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
EBImage EBImage • 1.2k views
ADD COMMENT
0
Entering edit mode
Oleg Sklyar ▴ 260
@oleg-sklyar-1882
Last seen 10.2 years ago
It is actually on a TODO list to implement the coordinate tracker, it should be done soon. Oleg Dr Oleg Sklyar * EBI-EMBL, Cambridge CB10 1SD, England * +44-1223-494466 Peter Hietz wrote: > 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 > > _______________________________________________ > Bioconductor mailing list > Bioconductor at stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/bioconductor > Search the archives: http://news.gmane.org/gmane.science.biology.informatics.conductor
ADD COMMENT

Login before adding your answer.

Traffic: 472 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6