what size does a image need to be for

4 views (last 30 days)
Kenneth Hammett
Kenneth Hammett on 15 Feb 2018
Commented: Jan on 15 Feb 2018
What is the optimal image size for import into MATLAB
  1 Comment
Jan
Jan on 15 Feb 2018
The term "optimal" requires to define a criterion: In which unit do you measure how "good" an image is for importing? Does the resolution matter, the density of information, the time for importing or if the image fits onto the screen? Currently your answer is too vague to be answered seriously.

Sign in to comment.

Answers (1)

John D'Errico
John D'Errico on 15 Feb 2018
Edited: John D'Errico on 15 Feb 2018
The optimal image size? Simple:
1 pixel.
So a square image of size 1x1. Fast. Efficient as hell. Only requires ONE color. Of course, you may have some different criteria for optimality, but they are hidden deeply in your mind, and mind reading is in a toolbox that has not yet been released for MATLAB.
Sigh. Be serious. There is NO optimal image size, nor can there be. The optimal size would depend on how much memory you have. What disk access you have for reading. How much resolution YOU need, things that only YOU can answer. It depends on your monitor, since trying to display a huge image is a waste of time anyway if you have a tiny monitor. It will depends on what tools you have to work with. What toolboxes, and what knowledge you have. Someone with more skill in image processing and MATLAB in general will probably be able to deal with somewhat larger images. It would depend on what computer/CPU you are using. It will depend on exactly what you intend to do with the image, how you will apply image processing techniques to it.
Essentially, the optimal image size is the largest one that you can do everything you need to do on, and do in a reasonable time.
But for me, the optimal image size is still 1 pixel. A wee bit boring as to content. But things fly like a bat out of a hot place when you work on images of that size.

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!