pcnn圖像分割代碼(matlab版)、簡單圖解

主程序: clear all;close all;clc; X=imread('lena.jpg'); X=rgb2gray(X); [Out,count]=pcnn(X); 函數: function [Out,count]=pcnn(X) figure(1); imshow(X); X=double(X); % 設定權值 Weight=[0.07 0.1 0.07;0.1 0 0.1;0.07
相關文章
相關標籤/搜索