• 大小: 61KB
    文件类型: .rar
    金币: 2
    下载: 1 次
    发布日期: 2021-06-15
  • 语言: Matlab
  • 标签: bilateral  filter  retinex  

资源简介

Collection of Computer Vision algorithms implemented in Matlab. Algorithms: seam carving ("Seam carving for content-aware image processing" by S. Avidan & A. Shamir, 2007) Algorithm and code are described in details http://kirilllykov.github.io/blog/2013/06/06/seam-carving-algorithm/ bilateral filter ("Bilateral filtering for gray and color images" by C. Tomasi & R. Manduchi, 1998) fast bilateral filter ("A fast approximation of the bilateral filter using a signal processing approach" by S. Paris & F. Durand, 2006) retinex ("Retinex by two bilateral filters" by M. Elad, 2005) shape from shading algorithm by Horn and Ikeuchi ("The Variational Approach to Shape from Shading" by B. Horn and M. Brooks, 1985) optical flow algorithm by Horn-Shunck for an array of input images ("Determining optical flow" by Horn and Schunck, 1980) generator of random surface and closed curve, auxiliary code

资源截图

代码片段和文件信息

% (C) Copyright Kirill Lykov 2013.
%
% Distributed under the FreeBSD Software License (See accompanying file license.txt)

clearvars all;
close all;

initialData = imread(‘cat.png‘);

originalGrayImg = double(rgb2gray(initialData));

subplot(221);
imagesc(originalGrayImg);
title(‘original image‘);
colormap gray;

subplot(222);
% noise functions expects integers
noisyGrayImg = imnoise(rgb2gray(initialData)‘gaussian‘ 0 0.01);
noisyGrayImg = double(noisyGrayImg);
imagesc(noisyGrayImg);
title(‘noisy image‘);

% parameters
sigmaSpatial = 10;
sigmaRange = 100;

samplingSpatial = sigmaSpatial;
samplingRange = sigmaRange;

% brute force Bilateral filter
subplot(223);
tStart = cputime;
filteredImg = regBilateralFilter(noisyGrayImg 0 sigmaSpatial sigmaRange samplingSpatial); 
tEnd = cputime;
imagesc(filteredImg);
title([‘brute force BF. Time: ‘ int2str(tEnd - tStart) ‘sec‘]);

% fast bilateral filter - terms and notations are from the paper
subplot(224);
tStart = cputime;
filteredImg = fastBilateralFilter(noisyGrayImg sigmaSpatial sigmaRange samplingSpatial samplingRange 0 15);
tEnd = cputime;
imagesc(filteredImg);
title([‘fast BF. Time: ‘ int2str(tEnd - tStart) ‘sec‘]);

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

    .......       952  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\README.md

    .......      1193  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples\ex_bilateral_filter.m

    .......       348  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples\ex_gen_rnd_surface_curve.m

    .......      1068  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples\ex_optical_flow.m

     文件        788  2017-10-13 17:09  cvision-algorithms-master\cvision-algorithms-master\examples\ex_retinex_filter.m

    .......       664  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples\ex_seam_carving.m

    .......       297  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples\ex_shape_from_shading.m

     文件      47100  2017-10-13 17:01  cvision-algorithms-master\cvision-algorithms-master\examples\5417_800.jpg

     文件        825  2017-10-31 14:53  cvision-algorithms-master\cvision-algorithms-master\examples\retinex_bila.m

     文件       1266  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\license.txt

    .......      4827  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\fastBilateralFilter.m

    .......       714  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\genRandCurve.m

    .......      1694  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\genRandSurface.m

    .......      2425  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\opticalFlow.m

    .......      1407  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\regBilateralFilter.m

    .......      2526  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\reinit.m

    .......      1760  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\retinexFilter.m

    .......      8598  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\seamCarving.m

    .......      1312  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src\shapeFromShading.m

     目录          0  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\examples

     目录          0  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master\src

     目录          0  2014-11-17 18:58  cvision-algorithms-master\cvision-algorithms-master

     目录          0  2017-10-13 17:08  cvision-algorithms-master

----------- ---------  ---------- -----  ----

                79764                    23


评论

共有 条评论