Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

MATLAB User Input Prompt in Functions

  1. Jun 20, 2012 #1
    I am working on a program that compares the monochrome intensities of two circular objects within a greyscale image. However, because I'm a beginner I don't know how to have my program locate where these objects are. This means I need to manually input the radius and position of each circle to the program as input variables.

    It can be rather annoying to have to use another program to figure these variables out. Is it possible to have MATLAB display the image on my screen before the function runs, with a grid overlapping it? If that is possible then it would be much easier to measure these values as well as input them into the program.

    Also, if anyone does know how to detect the locations of spheres in MATLAB and can tell me, then that would be much appreciated.

  2. jcsd
  3. Jun 22, 2012 #2
Share this great discussion with others via Reddit, Google+, Twitter, or Facebook