MATLAB MATLAB User Input Prompt in Functions

AI Thread Summary
The discussion centers on developing a program in MATLAB to compare the monochrome intensities of two circular objects in a greyscale image. The user, a beginner, faces challenges in automatically locating these objects, necessitating manual input of their radius and position. To streamline this process, the user seeks guidance on displaying the image with an overlapping grid in MATLAB, which would facilitate easier measurement of the required values. Additionally, there is a request for assistance in detecting the locations of spheres within MATLAB, highlighting a need for automated solutions to enhance the program's functionality. A helpful link to a MATLAB file exchange resource is provided, suggesting it may assist in automatically finding circles in images.
n1caboose
Messages
9
Reaction score
0
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.

Thanks!
 
Physics news on Phys.org

Similar threads

Replies
1
Views
3K
Replies
4
Views
2K
Replies
1
Views
2K
Replies
2
Views
44K
Replies
1
Views
4K
Replies
4
Views
37K
Replies
1
Views
5K
Back
Top