⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 region_seg_demo.m

📁 This code and doucument describe the image segementation using active contore models [snake].
💻 M
字号:
% Demo of "Region Based Active Contours"%% Example:% seg_demo%% Coded by: Shawn Lankton (www.shawnlankton.com)clcclear allclose allI = imread('airplane.jpg');  %-- load the imagem = zeros(size(I,1),size(I,2));          %-- create initial maskm(111:222,123:234) = 1;I = imresize(I,.5);  %-- make image smaller m = imresize(m,.5);  %     for fast computationsubplot(2,2,1); imshow(I); title('Input Image');subplot(2,2,2); imshow(m); title('Initialization');subplot(2,2,3); title('Segmentation');seg = region_seg(I, m, 250); %-- Run segmentationsubplot(2,2,4); imshow(seg); title('Global Region-Based Segmentation');

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -