Steve on Image Processing

October 2nd, 2009

Tab completion for imread, imfinfo, and imwrite in R2009b

OK, I'm embarrassed that I didn't even know about this particular new feature in R2009b. Yesterday I was in another developer's office looking at his latest project. He was typing away in MATLAB when all of a sudden he did something that made me sit up and look closer at the screen. "Hey!" I said. "Do that again!"

He had pressed TAB while typing in the filename input argument to imread, and it automatically completed the filename!

Really, I had no idea they had done this.

Here's a screen snippet.

imread tab completion screen shot

The functions imread, imfinfo, and imwrite all now support tab completion for filenames in your current working folder.

2 Responses to “Tab completion for imread, imfinfo, and imwrite in R2009b”

  1. Sid replied on :

    This is a very useful enhancement to the language.
    Another tab completion I’ve always wanted was for the key word arguments. For example, consider “regionprops” and the plethora of properties that it returns. It would be great to have tab completion so that it’s easier (and quicker) to specify the subset of properties one is interested in.
    There’s many other examples but regionprops was the first one that came to mind.

  2. Steve replied on :

    Sid—Thanks very much for the suggestion.

Leave a Reply

Wrap code fragments inside <pre> tags, like this:

<pre class="code">
a = magic(3);
sum(a)
</pre>

If you have a "<" character in your code, either follow it with a space or replace it with "&lt;" (including the semicolon).


Steve Eddins manages the Image & Geospatial development team at The MathWorks and coauthored Digital Image Processing Using MATLAB. He writes here about image processing concepts, algorithm implementations, and MATLAB.

  • Sana: hi steve, could you explain to me how i would be able to use the dir function, to do a loop through a directory...
  • Nishtha: Sir, I have preprocessed the image in following steps: [1] adaptive histogram equalization [2] thresholding...
  • Kristof: I also strongly support the idea. I have just recently bumped into the problem that im2single was not...
  • Steve: David—I’ m glad you found it useful!
  • David Lalejini: I found your example very useful for finding connected nodes in a large set of input pairs. I start...
  • tommy: Dear Steve, I have a question,please if you are kind to help me regarding the accumulator array dimensions of...
  • Steve: Abc—I don’t know how to distinguish the faces. You might try posting your question in the MATLAB...
  • Manju: well if we have a few ovals within each other like in a cell how do we measure the distance from the center...
  • Steve: Manju—What do you mean? How is each region defined?
  • Manju: if we have 2-3 regions within each other how do we measure the regions of each one?

These postings are the author's and don't necessarily represent the opinions of The MathWorks.