Steve on Image Processing

March 21st, 2008

MATLAB 7.6 (R2008a)

When the new releases come out, I like to peruse the release notes for MATLAB. Loren and the Desktop team have already started writing about the new features in their blogs, but I thought I'd mention a few items that particularly caught my eye.

First of all, the new object-oriented programming features in MATLAB are huge. Key features include:

  • Class definition files, enabling definition of properties, methods, and events
  • Handle classes with reference behavior, aiding the creation of data structures such as linked lists
  • Events and listeners, allowing the monitoring of object property changes and actions
  • JIT-Accelerator support, providing significantly improved object performance
  • Development environment support for the creation and use of classes

This page contains links to documentation, a tutorial video, and an upcoming webinar.

The MATLAB Desktop has received several very useful enhancements. I particularly like the improved code folding in the MATLAB Editor, as well support for inspecting object properties in the Variable Editor. Here's a short video demonstration of the new Desktop features.

Since I frequently use the publish feature to create my blog posts from MATLAB scripts, I appreciate the new ability to create publish configurations for each of my scripts. Also, now you can define cells and capture output from within a for-loop.

If you want to experiment with different compiler settings for the FFTW library that MATLAB uses, you can now replace the FFTW shared objects with your own. (Warning—this is not for the faint of heart. You can crash MATLAB hard if you make a mistake in replacing its core libraries.)

A long-standing user request has finally been implemented; use the clearvars function to clear all variable except the ones you specify.

Finally, on Windows platforms MATLAB can give you some insight into the current status of overall memory usage on your computer with the memory function.

I've made no attempt here to provide a comprehensive summary of the new MATLAB features. As I said earlier, these are just some of the things that caught my eye. I encourage you to look at the release notes yourself to discover your own gems in the new release.

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.