I know how imread
and imwrite
works, but I don't know where do the function call the image file from? In other words, where do I store the image in order to call it using imread
?
Matlab – How does path retrieval work using imread and imwrite
imageMATLAB
Related Topic
- What are the different usecases of PNG vs. GIF vs. JPEG vs. SVG
- Android – Get content uri from file path in android
- Matlab – How does matlab function imwrite() scale the data while writing the output
- CSS Image size, how to fill, but not stretch
- Python – OpenCV – imread(), imwrite() increases the size of png
Best Answer
As Adam suggests you could change the Matlab working directory to the location of your images or what I tend to do is to get the user to select the file to be read using
uigetfile
or if you know the directory of to the images you want to read you could store it in a variable then you could get a list of images in that directory using
dir
from there you can loop through
imageList
and process each image found. Finally, you can useuigetdir
to ask the user for the direcotory containing the image set.