File Exchange Pick of the Week

August 2nd, 2007

Use case: Visualizing three images

Here is a question from the front lines of technical support at the MathWorks.

This MATLAB user had three images that they wanted to view at once so they could compare them to one another. The problem is that displaying three images at once meant they would all have to be scaled down, losing precious resolution. This video shows the work flow I went through to solve the problem. This video is more for your newer MATLAB users. In this six and a half minute video you will see:

  • Explanation of the problem
  • Quick view of the solution
  • Using subplot with ‘position’ property to align axis correctly
  • Changing properties of axis to keep aspect ratio equal
  • Changing properties of axis to hide the axis from view
  • Using linkaxes so that all axes zoom at same time

As always the customer images were replaced with my own sample images.

Here are the files, and the flash video for download from the File Exchange.

4 Responses to “Use case: Visualizing three images”

  1. Michel Slivitzky replied on :

    I never realize done can do so much with Matlab in picture editing.
    Nothing beats learning by example and this video is just great.
    Is it possible to get a copy of the code to study it at leisure

    Thanks

  2. Doug replied on :

    Michel,

    I just put the video and file on the exchange for download.

    Thanks for the kind words.
    Doug

  3. Mark replied on :

    Doug,

    I just wanted to personally thank you as the customer who requested help on this subject. Your solution works flawlessly and I was very impressed. Thanks again for your help.

    -Mark

  4. Phillip replied on :

    Hi Doug,

    I was wondering if you have a basic example which shows the interaction between Matlab and Java. Thank you.

    By the way, your videos are excellent.

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).


Bob, Brett & Jiro share their favorite user-contributed submissions from the File Exchange.

  • Zach: Hi Doug and Les, I didn’t have a lot of time to mess with this, but I did find a work-around. I plotted...
  • hamed: k
  • Les: @Zach This isn’t exactly what you are looking for but at least it puts all three parameters on the same...
  • Zach: Thanks for your suggestions Doug. I’ll give that a shot and see what happens. I’ve seen many of...
  • Doug: @Zach, I would say to use plotYYY, because that is close to what you want, but using depth as Y makes sense....
  • Doug: @Teja, I think this will work: http://www.mathworks .com/access/helpdesk /help/techdoc/ref...
  • Gify: merry christmas :) nice christmas tree! Regards, Janet Gify
  • Teja: Dear Doug Is there anyway to plot a surface from nonuniform data without meshgrid and griddata? Basically i...
  • Zach: I’m working with geophysical data, so I’d like to produce a depth profile. The y-axis would be...
  • Doug: @Ashok First, please do not use variable names that are MATLAB commands (std and mean). Second, p(j) should be...

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