文件名称:用bandelet进行图像分割的matlab代码
- 所属分类:
- 图形图像处理(光照,映射..)
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2009-05-11
- 文件大小:
- 1.02mb
- 下载次数:
- 1次
- 提 供 者:
- wuda5566@sina.com
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
A Matlab Tour of Second Generation Bandelets
附有每部分代码的说明
function x = perform haar transform(x, dir);
x = x(:); % to be sure we have a column vector
J = floor( log2(length(x)) ); % number of scales
if dir==1 % forward transform
for j=1:J
c = x(1:2?j-1):end); % previous coarse signal
x(1:2苆:end) = ... % new coarse signal
( c(1:2:end) + c(2:2:end) )/sqrt(2);
x(1+2?j-1):2苆:end) = ... % new details
(c(1:2:end)-c(2:2:end))/sqrt(2);
end
else % backward transform
for j=J:-1:1
y = x(1:2?j-1):end);
x(1:2苆:end) = ...
( y(1:2:end) + y(2:2:end) )/sqrt(2);
x(1+2?j-1):2苆:end) = ...
( y(1:2:end) - y(2:2:end) )/sqrt(2);
end
end
Listing 1: Function perform haar transform
附有每部分代码的说明
function x = perform haar transform(x, dir);
x = x(:); % to be sure we have a column vector
J = floor( log2(length(x)) ); % number of scales
if dir==1 % forward transform
for j=1:J
c = x(1:2?j-1):end); % previous coarse signal
x(1:2苆:end) = ... % new coarse signal
( c(1:2:end) + c(2:2:end) )/sqrt(2);
x(1+2?j-1):2苆:end) = ... % new details
(c(1:2:end)-c(2:2:end))/sqrt(2);
end
else % backward transform
for j=J:-1:1
y = x(1:2?j-1):end);
x(1:2苆:end) = ...
( y(1:2:end) + y(2:2:end) )/sqrt(2);
x(1+2?j-1):2苆:end) = ...
( y(1:2:end) - y(2:2:end) )/sqrt(2);
end
end
Listing 1: Function perform haar transform
(系统自动生成,下载前可以参看下载内容)
下载文件列表
压缩包 : 用bandelet进行图像分割的matlab代码.rar 列表 bandelet_segmentation bandelet_segmentation/BandeletsTutorial.pdf bandelet_segmentation/barb.gif bandelet_segmentation/circle.png bandelet_segmentation/circle_32.png bandelet_segmentation/circle_64.png bandelet_segmentation/compute_best_direction.m bandelet_segmentation/compute_quadtree.asv bandelet_segmentation/compute_quadtree.m bandelet_segmentation/compute_wavelet_quadtree.m bandelet_segmentation/convert_wavelets2list.m bandelet_segmentation/CVS bandelet_segmentation/CVS/Entries bandelet_segmentation/CVS/Entries.Extra bandelet_segmentation/CVS/Repository bandelet_segmentation/CVS/Root bandelet_segmentation/dichotomic_grouping.m bandelet_segmentation/func_DWT.asv bandelet_segmentation/func_DWT.m bandelet_segmentation/func_Main.asv bandelet_segmentation/func_Main2.asv bandelet_segmentation/func_Main2.m bandelet_segmentation/func_Main3.asv bandelet_segmentation/func_Main3.m bandelet_segmentation/func_Main4.asv bandelet_segmentation/func_Main4.m bandelet_segmentation/func_Mywavedec2.asv bandelet_segmentation/func_Mywavedec2.m bandelet_segmentation/images bandelet_segmentation/LENA.BMP bandelet_segmentation/load_image_small_square.m bandelet_segmentation/Main4.m bandelet_segmentation/na.bmp bandelet_segmentation/na_128.bmp bandelet_segmentation/new2.bmp bandelet_segmentation/new2_1.bmp bandelet_segmentation/new2_64.bmp bandelet_segmentation/new3.bmp bandelet_segmentation/new4.bmp bandelet_segmentation/new4_128.bmp bandelet_segmentation/new4_256.bmp bandelet_segmentation/new4_32.bmp bandelet_segmentation/new4_64.bmp bandelet_segmentation/perform_alpert_transform_2d.m bandelet_segmentation/perform_bandelet_transform.m bandelet_segmentation/perform_moment_transform_slow.m bandelet_segmentation/perform_warped_wavelet.asv bandelet_segmentation/perform_warped_wavelet.m bandelet_segmentation/perform_warping.m bandelet_segmentation/perform_wavelet_bandelet_transform.m bandelet_segmentation/perform_wavelet_transform.m bandelet_segmentation/plot_geometry.m bandelet_segmentation/plot_quadtree.m bandelet_segmentation/plot_wavelet_quadtree.m bandelet_segmentation/reverse.m bandelet_segmentation/rev_sort_abs.m bandelet_segmentation/segmentation.asv bandelet_segmentation/segmentation.m bandelet_segmentation/test_compression.asv bandelet_segmentation/test_compression.m bandelet_segmentation/test_quadtree.asv bandelet_segmentation/test_quadtree.m bandelet_segmentation/test_reordering.m bandelet_segmentation/test_single_square.asv bandelet_segmentation/test_single_square.m bandelet_segmentation/test_speed.m bandelet_segmentation/test_wavelet_quadtree.m bandelet_segmentation/toolbox bandelet_segmentation/toolbox/compile_mex.m bandelet_segmentation/toolbox/compute_quadrant_selection.m bandelet_segmentation/toolbox/evaluate_nbr_bits_wavelets.m bandelet_segmentation/toolbox/images bandelet_segmentation/toolbox/keep_above.m bandelet_segmentation/toolbox/keep_biggest.m bandelet_segmentation/toolbox/l2error.m bandelet_segmentation/toolbox/load_image.m bandelet_segmentation/toolbox/mex bandelet_segmentation/toolbox/mex/bandelet.sln bandelet_segmentation/toolbox/mex/config.h bandelet_segmentation/toolbox/mex/perform_haar_transform.cpp bandelet_segmentation/toolbox/mex/perform_haar_transform.def bandelet_segmentation/toolbox/mex/perform_haar_transform.h bandelet_segmentation/toolbox/mex/perform_haar_transform.suo bandelet_segmentation/toolbox/mex/perform_haar_transform.vcproj bandelet_segmentation/toolbox/perform_haar_transform.dll bandelet_segmentation/toolbox/perform_haar_transform_slow.m bandelet_segmentation/toolbox/perform_quantization.m bandelet_segmentation/toolbox/plot_wavelet.m bandelet_segmentation/toolbox/psnr.m bandelet_segmentation/toolbox/reorder_coefs.m bandelet_segmentation/toolbox/rescale.m bandelet_segmentation/vision_1.asv bandelet_segmentation/vision_1.m