• 大小: 2.12MB
    文件类型: .rar
    金币: 1
    下载: 0 次
    发布日期: 2021-01-03
  • 语言: Matlab
  • 标签: 图像分割  MATLAB  

资源简介

应用MATLAB编写的图像分割程序,应用边界信息与基于mumford-shah泛函的先验形状的图像分割

资源截图

代码片段和文件信息


% Author: Xavier Bresson (xbresson at math.ucla.edu)
% Last version: Oct 06 2008
% Name: createTrainingSetOfEllipses
% Description: This function computes the signed distance functions of 30
% random ellipses.


function createTrainingSetOfEllipses

close all;


% parameters
Nb_ellipses = 30; % number of ellipses

N = 3000; % number of points for the parametric representation of ellipses

Nx = 128; Ny = Nx; % size of image domain

a_mean = 27; 
b_mean = 22;
a_scale = 2.3; 
b_scale = 0;





%%%%%%%%% generate parametric representation of ellipses %%%%%%%%%
disp(‘Generate parametric representation of ellipses‘);
X = zeros(4*NNb_ellipses);
Y = zeros(4*NNb_ellipses);
Nc = Nx/2;
for e=1:Nb_ellipses

  a = a_mean+ a_scale^2* randn(1); % 
  b = b_mean+ b_scale^2* randn(1);
  
  for cpt=N:-1:1

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

     文件       3732  2008-10-08 14:48  activeContourShapePrior\1-createTrainingSetOfEllipses\createTrainingSetOfEllipses.m

     文件      16205  2004-10-04 09:35  activeContourShapePrior\1-createTrainingSetOfEllipses\nrutil.c

     文件       3330  2004-10-04 09:35  activeContourShapePrior\1-createTrainingSetOfEllipses\nrutil.h

     文件      31164  2008-10-08 12:52  activeContourShapePrior\1-createTrainingSetOfEllipses\pca_mex.c

     文件      17338  2008-10-08 14:40  activeContourShapePrior\1-createTrainingSetOfEllipses\sdf_mex.c

     文件      17408  2009-05-13 16:48  activeContourShapePrior\1-createTrainingSetOfEllipses\sdf_mex.mexw32

     文件       2847  2008-10-08 14:52  activeContourShapePrior\2-computePCA\computePCA.m

     文件      23040  2008-10-08 14:49  activeContourShapePrior\2-computePCA\pca_mex.mexw32

     文件      25594  2008-10-08 17:34  activeContourShapePrior\3-runActiveContourShapePrior\acsp.c

     文件       8931  2008-10-08 15:39  activeContourShapePrior\3-runActiveContourShapePrior\acspBoundaryTerm.c

     文件      21473  2008-10-08 14:38  activeContourShapePrior\3-runActiveContourShapePrior\acspBsplines.c

     文件       7013  2008-10-08 17:32  activeContourShapePrior\3-runActiveContourShapePrior\acspCommon.h

     文件      18703  2008-10-08 14:38  activeContourShapePrior\3-runActiveContourShapePrior\acspExtensionU.c

     文件      12894  2008-10-08 14:38  activeContourShapePrior\3-runActiveContourShapePrior\acspReDistLSF.c

     文件      79048  2008-10-08 18:05  activeContourShapePrior\3-runActiveContourShapePrior\acspShapeTerms.c

     文件       6102  2008-10-08 18:10  activeContourShapePrior\3-runActiveContourShapePrior\acsp_mex.c

     文件      75264  2008-10-08 18:29  activeContourShapePrior\3-runActiveContourShapePrior\acsp_mex.mexw32

     文件      13262  2009-07-14 11:05  activeContourShapePrior\3-runActiveContourShapePrior\hs_err_pid624.log

     文件       8611  2008-10-08 19:06  activeContourShapePrior\3-runActiveContourShapePrior\runActiveContourShapePrior.m

     文件      17464  2008-10-08 14:41  activeContourShapePrior\3-runActiveContourShapePrior\sdf_mex.c

     文件      17408  2008-10-08 14:53  activeContourShapePrior\3-runActiveContourShapePrior\sdf_mex.mexw32

     文件     284501  2009-08-12 14:37  activeContourShapePrior\activeContourShapePrior.docx

     文件     117080  2009-07-14 10:49  activeContourShapePrior\data\pcaEllipses.mat

     文件    1921367  2009-07-14 10:36  activeContourShapePrior\data\trainingSetEllipses.mat

     文件        305  2004-10-05 01:00  activeContourShapePrior\images\ellipse_cut.gif

     文件        345  2004-10-05 01:00  activeContourShapePrior\images\ellipse_occlusion.gif

    ..A.SH.      5632  2009-05-13 16:50  activeContourShapePrior\images\Thumbs.db

     文件       1320  2009-07-15 10:39  activeContourShapePrior\readme.txt

     目录          0  2009-07-07 11:07  activeContourShapePrior\snake\Edgebased\gvf

     目录          0  2009-07-07 11:07  activeContourShapePrior\snake\Edgebased

............此处省略10个文件信息

评论

共有 条评论