MATLAB User Input Prompt in Functions

Click For Summary
SUMMARY

The discussion centers on utilizing MATLAB for image processing, specifically for comparing monochrome intensities of circular objects in greyscale images. The user seeks a method to display the image with an overlay grid before executing the function, facilitating easier manual input of radius and position variables. Additionally, the user requests guidance on detecting the locations of spheres in MATLAB, highlighting the need for automated detection methods. A relevant resource from MATLAB Central is provided to assist with circle detection.

PREREQUISITES
  • Familiarity with MATLAB programming environment
  • Understanding of image processing concepts in MATLAB
  • Knowledge of function creation and user input handling in MATLAB
  • Basic skills in using MATLAB's File Exchange for additional resources
NEXT STEPS
  • Explore MATLAB's image processing toolbox for functions like `imfindcircles`
  • Learn how to create interactive plots in MATLAB using `imshow` and `ginput`
  • Research techniques for overlaying grids on images in MATLAB
  • Investigate the use of MATLAB's `regionprops` for analyzing image regions
USEFUL FOR

This discussion is beneficial for MATLAB users, particularly those involved in image processing, computer vision, and anyone seeking to enhance their skills in automating object detection within 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 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
44K
  • · Replies 7 ·
Replies
7
Views
11K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 4 ·
Replies
4
Views
37K
  • · Replies 1 ·
Replies
1
Views
5K