You are here: NanoScope Software User Guide > Offline Commands > Modify Commands > Median

Median

The Median modify command is similar to Lowpass; it reduces the contributions of high spatial frequency, reducing contrast in regions of high contrast. The advantage of Median over Lowpass (averaging) filter is that the Median will eliminate lone "bad pixels" without significantly affecting the resolution of the image.

Median Theory

In the Median command, data is analyzed in kernels (matrices), with every pixel individually recalculated based upon its neighboring values. For example, data which is undergoing a Median filter applies a 3x3 or 5x5 matrix operation to each image pixel.

Figure 1: Median Data Analysis Depiction

Each pixel is individually evaluated within its own local, 5 x 5 “neighborhood.” Neighborhood A has pixel a2a3 at its center. For a Median filter, the 25 pixels in neighborhood A are evaluated to locate the median value pixel. The median value of neighborhood A is then mapped to a new pixel a2a3 in a separate data set. The matrix is shifted over one column to define a new neighborhood (“B”) with pixel a2a4 at its center. The median value for neighborhood “B” is found, then mapped to pixel a2a4 in the separate data set. The filtering process is repeated until all pixels have been remapped.

In this and all other matrix operations, pixels are mapped to the new, separate data set without changing pixel values in the original image data until saved. (Matrices do not operate cumulatively on previously filtered data.)

The size of the filter’s sliding window pixel array is set under Inputs > Median Order. Increasing the Median Order increases the pool of pixels from which each value is calculated, and effectively increases the blurring effects of the filter.

The effects of three different size pixel arrays (3 x 3, 7 x 7, 11 x 11, left to right) applied to the same image are shown in Figure 2.

Figure 2: Median Pixel Array Effects

Median Procedure

 
  1. Select an image file from the file browsing window at the right of the main window. Double-click the thumbnail image to select and open the image.
  2. You can open the Median view, shown in Figure 4, using one of the following methods:
    • Right-click on the image name in the Workspace and select Add View > Median from the popup menu. See Figure 3.

Figure 3: Select Median from the Workspace

 

Or

  • Right-click on a thumbnail in the Multiple Channel window and select Median.

Or

  • Select Modify > Median from the menu bar.

Or

  1. Click the Median icon in the toolbar.

Figure 4: The Median image interface

 
  1. Select the Median Order from the Inputs menu: 3 x 3, 5 x 5, 7 x 7, 9 x 9, or 11 x 11.
  2. Choose an Output File Name.
  3. Click Execute to apply the Median filter.
  4. Click Reload to start over.

 

www.bruker.com Bruker Corporation
www.brukerafmprobes.com 112 Robin Hill Rd.
nanoscaleworld.bruker-axs.com/nanoscaleworld/ Santa Barbara, CA 93117
   
  Customer Support: (800) 873-9750
  Copyright 2010, 2011. All Rights Reserved.