Products & Services Solutions Academia Support User Community Company

Two-Dimensional Extension

This section takes you through the features of two-dimensional extension or truncation using one of the Wavelet Toolbox™ utilities. This section is short since it is very similar to One-Dimensional Extension.

Two-Dimensional Extension Using the Command Line

The function wextend performs image extension. For more information, see its reference page.

Two-Dimensional Extension Using the Graphical Interface

  1. Start the Image Extension Tool.

  1. From the MATLAB® prompt, type

    • wavemenu
      

    The Wavelet Toolbox Main Menu appears.

    Click the Image Extension menu item.

  1. Extend (or truncate) the image.

  1. From the File menu, choose the Example Extension option and select the first item of the list.

    The tool displays the original image delimited by a red box and the transformed image delimited by a yellow box. The image has been extended by zero padding. The right part of the window allows you to control the parameters of the extension/truncation process for the vertical and horizontal directions, respectively. The possibilities are similar to the one-dimensional ones described in One-Dimensional Extension.

    To see some more extension cases, look at the general demos of the toolbox (using the wavedemo command).

Importing and Exporting Information from the
Graphical Interface

This tool lets you save the transformed image to disk. The toolbox creates a MAT-file in the current folder with a name you choose.

To save the transformed image, use the menu option File > Save Transformed Image.

A dialog box appears that lets you specify a folder and filename for storing the image. Type the name woman2. After saving the image data to the file woman2.mat, load the variable into your workspace:

The transformed image is stored together with its colormap.


 Provide feedback about this page 

Previous page One-Dimensional Extension Image Fusion Next page

Recommended Products

Includes the most popular MATLAB recorded presentations with Q&A sessions led by MATLAB experts.

 © 1984-2010- The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS