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.

  • Steve: Dansheng—The following code will give you the binary image corresponding to a single object. L =...
  • Dansheng Song: Hi Steve, Your posts are very helpful for Matlab users. Do you know how can I get the binary image by...
  • DP: Thanks Steve. it did work. now can easily calculate DSC.
  • Steve: DP— A & B
  • DP: Hi Steve, Dice similarity coefficient is defined to find the overlapped regions between two objects in an image....
  • Steve: Searching— axis on
  • Steve: DP—Sorry, but I’ve never heard of dice similarity coefficients.
  • searching: Hey, I found this place extremely useful. I have a question though. Although I manage to plot my points on...
  • DP: Hi Steve, thanks for your email. i could not seperate those connected objects. Instead i am trying to compare...
  • Gopesh: Excellent code..was very helpful to me to change the background color of mri images and thereby improving the...

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