www.gusucode.com > 基于matlab+3D立体视差源码程序 > 基于matlab编程3D立体视差源码程序/matlab+3D立体视差/lankton_stereo/msseg/readme.txt

    Welcome to the EDISON Wrapper for Matlab

The EDISON system contains the image segmentation/edge preserving filtering
algorithm described in the paper Mean shift: A robust approach toward feature
space analysis and the edge detection algorithm described in the paper  Edge
detection with embedded confidence.

More information about EDISON (and the original codes) can be found here:
(http://www.caip.rutgers.edu/riul/research/code/EDISON/index.html)

This interface allows these codes to be run from Matlab using MEX files.

To use this wrapper, first run
>>compile_edison_wrapper

This will mex-ify all necessary codes.  Then you can begin segmenting images.
Here are some sample calls:

>> %% This will load, segment, and display the "peppers" image
>> I = imread('peppers.png');
>> [fimg labels modes regsize grad conf] = edison_wrapper(I,@RGB2Luv);
>> imshow(Luv2RGB(fimg))

>> %% This sets some specific parameters and segments the gantrycrane image
>> I = imread('gantrycrane.png');
>> [fimg labels modes regsize grad conf] = edison_wrapper(I,@RGB2Luv,...
>>       'SpatialBandWidth',8,'RangeBandWidth',4,...
>>       'MinimumRegionArea',50);
>> subplot(2,1,1), imshow(I); subplot(2,1,2), imshow(Luv2RGB(fimg));

>> %% This performs filtering only the grayscale "cameraman" image
>> I = imread('cameraman.tif');
>> I = repmat(I,[1 1 3]);
>> [fimg labels modes regsize grad conf] = edison_wrapper(I,@RGB2Luv,...
>>       'steps', 1, 'SpatialBandWidth',8,'RangeBandWidth',4);
>> I = rgb2gray(Luv2RGB(fimg));
>> subplot(2,1,1), imshow(I); subplot(2,1,2), imshow(I);