TurboPixels

所属分类:图形图像处理
开发工具:matlab
文件大小:329KB
下载次数:281
上传日期:2012-04-09 14:20:38
上 传 者dasinibuxing
说明:  利用turbopixel的超像素图像分割方法,可以显示不同块的颜色。
(This is a mex c and matlab code, which uses the turbopixel to segment the object from the image. )

文件列表:
TurboPixels\3.jpg (3470, 2011-01-15)
TurboPixels\clip.m (150, 2007-04-13)
TurboPixels\convolve.c (10499, 2007-04-13)
TurboPixels\convolve.h (963, 2007-04-13)
TurboPixels\corrDn.c (4560, 2007-04-13)
TurboPixels\corrDn.mexglx (36875, 2009-10-13)
TurboPixels\corrDn.mexw32 (24576, 2009-10-15)
TurboPixels\demo_superpixels.asv (328, 2012-03-28)
TurboPixels\demo_superpixels.m (326, 2012-03-28)
TurboPixels\display_contour.m (1210, 2007-04-13)
TurboPixels\display_logical.m (687, 2007-04-13)
TurboPixels\DT.c (3779, 2007-04-13)
TurboPixels\DT.mexglx (9116, 2009-10-13)
TurboPixels\DT.mexw32 (8704, 2009-10-15)
TurboPixels\edges.c (22123, 2007-04-13)
TurboPixels\evolve_height_function.m (837, 2007-04-13)
TurboPixels\evolve_height_function_N.m (5620, 2007-04-13)
TurboPixels\get_binary_img_from_seeds.m (572, 2007-04-13)
TurboPixels\get_full_speed.c (1768, 2007-04-13)
TurboPixels\get_full_speed.mexglx (7508, 2009-10-13)
TurboPixels\get_full_speed.mexw32 (6656, 2009-10-15)
TurboPixels\get_initial_seeds.m (2412, 2007-04-13)
TurboPixels\get_speed_based_on_boundaries.m (333, 2007-04-13)
TurboPixels\get_speed_based_on_gradient.m (2166, 2007-04-13)
TurboPixels\get_superpixel_boundaries.m (2153, 2007-04-13)
TurboPixels\hasToRecomputeBand.m (143, 2007-04-13)
TurboPixels\height_function_change_rate.m (295, 2007-04-13)
TurboPixels\height_function_der.c (1417, 2007-04-13)
TurboPixels\height_function_der.mexglx (7053, 2009-10-13)
TurboPixels\height_function_der.mexw32 (6656, 2009-10-15)
TurboPixels\height_function_grad.c (3836, 2007-04-13)
TurboPixels\height_function_grad.mexglx (7446, 2009-10-13)
TurboPixels\height_function_grad.mexw32 (7168, 2009-10-15)
TurboPixels\image.jpg (22892, 2012-03-26)
TurboPixels\lizard.jpg (37923, 2007-04-13)
TurboPixels\lizard_speed.jpg (63784, 2009-03-23)
TurboPixels\local_min.c (1259, 2007-04-13)
TurboPixels\local_min.mexglx (7003, 2009-10-13)
TurboPixels\local_min.mexw32 (6656, 2009-10-15)
TurboPixels\lsmlib\computeDistanceFunction2d.c (4147, 2007-04-13)
... ...

Instalation and running instructions for superpixel code -------------------------------------------------------- DISCLAIMER: This is a beta version of the superpixel code. It hasn't been thoroughly tested on different architectures. It was tested on a Linux system with Matlab 7.1, with gcc and g++ compilers. The affinity function that is used in the code is simple and is not sufficient to provide good results on all possible images. The domain of the images affects the choice of the affinity function. This file contains instructions on running the superpixel code. Instalation: ------------ - Put all the code into a directory (for example 'my_dir') - Run 'cd my_dir' - Start matlab - The subdirectory 'lsmlib' needs to be added to matlab's path. This is done in demo_superpixels.m, or you can do it manually by typing 'addpath('lsmlib')' - Run 'make'. To work, MEX needs to be properly configured. Ignore the warnings. - Load an image 'img = im2double(imread(image_filename))'. This ensures that the loaded image is in double format with every component in 0..1 range. Another method for loading images can be used as long as the resulting image is a 2D array of doubles. The image can be RGB or grayscale, although it only matters for displaying purposes. - Run the superpixels() function in superpixels.m. The header describes the different parameters. - demo_superpixels.m gives one example of using the code. Examples: 1) Getting 1500 superpixels without intermediate display img = im2double(imread('lizard.jpg')); [phi,boundary,disp_img] = superpixels(img, 1500); imagesc(disp_img); 2) Getting superpixels with an intermediate display every 5 timesteps img = im2double(imread('lizard.jpg')); [phi,boundary,disp_img] = superpixels(img, 1500, 5); imagesc(disp_img); 3) Getting superpixels while saving every frame of the evolution into a movie img = im2double(imread('lizard.jpg')); [phi,boundary,disp_img, frames] = superpixels(img, 1500, 1); disp('Press any key to view the evolution movie'); pause; movie(frames);

近期下载者

相关文件


收藏者