Matlab Files for Image Processing and Analysis
Submission by: Jennifer R. Hampton 2/16/09
Updated 1/21/11: Fixed links.
Updated 7/30/10: Updated versions of these files are available here.
These programs, which are based on the Carpick Lab Toolbox, are used to extract the data from a NanoScope data file.
The scaled results are placed in the matrix data, an N x M x L matrix, where N is the number of lines, M is the number of points per line (N = M in most cases), and L is the number of simultaneous data channels recorded. The assumption is that the first data channel is topgraphy and all the other channels are not topography. The data output is nm for the first channel and V for all subsequent channels. It has been tested on data files with only one channel (topography) and data files with three channels (topography and LFM forward and back).
usage: data = open_di(file_name)
To use open_di.m, you need get_num.m (included here) and di_header_find.m (in the Carpick Lab Toolbox).
The file open_di.m (v1) is based on get_image_data.m from the Carpick Lab Toolbox, but with updated scaling, as described in the comments of the file. The heart of the code (reading data and placing it in the output matrix) is the same as in get_image_data.m.
The file get_num.m is a rewritten version of extract_num.m from the Carpick Lab Toolbox. The change was necessary to make sure that the correct number from each header line was extracted.
The file open_di_information.txt (v1) contains the information described above and additional information about the scaling from hardware to physical units.















