Matlab- Function for select and use images

Click For Summary
SUMMARY

The discussion focuses on creating a function in MATLAB that automatically selects images based on their numerical filenames relative to a specified image. The user seeks to implement this functionality in an interpolation process, specifically selecting images numbered 121, 122, 124, and 125 based on an initial image numbered 123. The suggestion to utilize the output structure array from the dir command is highlighted as a potential solution for managing file selection.

PREREQUISITES
  • Familiarity with MATLAB programming
  • Understanding of file handling in MATLAB
  • Knowledge of interpolation techniques in image processing
  • Experience with the uigetfile function in MATLAB
NEXT STEPS
  • Explore the dir command in MATLAB for file management
  • Learn about MATLAB's image processing toolbox for interpolation methods
  • Investigate how to manipulate strings and filenames in MATLAB
  • Review examples of custom functions in MATLAB for automating tasks
USEFUL FOR

MATLAB developers, image processing engineers, and anyone involved in automating file selection and interpolation in MATLAB projects.

klipya
Messages
1
Reaction score
0
Hi! I'm writing you to ask about a question, to see if anyone knows how to solve it. I'm doing an interpolation process and I would add a function to a Matlab code that would select and use two dates up and down in the process for a selected image (I opened it before with the function uigetfile). For example, I have an image in a folder with the number 123 and I want that the code would select the numbers 121, 122, 124 and 125 automatically.

Greetings and thank you very much in advance,
 
Physics news on Phys.org
Do you want to select these numbers based on what a folder or file name is? It seems like an odd way to do things. Maybe you should have a look at the output structure array for the dir command.

http://www.mathworks.com/help/techdoc/ref/dir.html
 
Last edited:

Similar threads

Replies
1
Views
3K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
3K
  • · Replies 9 ·
Replies
9
Views
5K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 8 ·
Replies
8
Views
3K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K