資源簡介
模糊聚類圖像分割,還包括spectral clustering及其改進版(按照pr2010某paper)
代碼片段和文件信息
function?similarity?=?calcSimilarity(?block_ablock_bBlockSizeGrayLevel?)
%CALCSIMILARITY?Summary?of?this?function?goes?here
%???calculate?similarity?between?two?blocks
????len?=?BlockSize^2;
????imgVector_a?=?[];
????imgVector_b?=?[];
????for?i?=?1?:?BlockSize
????????imgVector_a?=?[imgVector_a(:);?block_a(:?i)];
????end
????for?i?=?1?:?BlockSize
????????imgVector_b?=?[imgVector_b(:);?block_b(:?i)];
????end
????similarity?=?0;
????[histogram_a?pos_a]?=?hist(imgVector_a?GrayLevel);
????[histogram_b?pos_b]?=?hist(imgVector_b?GrayLevel);
????histogram_a?=?histogram_a?/?len;
????histogram_b?=?histogram_b?/?len;
????for?i?=?1?:?GrayLevel
????????similarity?=?similarity?+?sqrt(histogram_a(i)?*?histogram_b(i)?*?exp(?-?abs(pos_a(i)?-?pos_b(i))?/?64?));
????end
end
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件???????40181??2011-06-08?15:01??003.jpg
?????文件????????3569??2004-06-18?03:19??3.jpg
?????文件?????????799??2010-12-26?15:02??calcSimilarity.m
?????文件??????????11??2010-12-03?18:36??delASV.bat
?????文件??????????88??2011-06-03?14:47??delASV.m
?????文件????????3483??2011-06-07?15:40??ESSC.m
?????文件????????4958??2011-06-10?15:33??fcm.m
?????文件????????3151??2010-12-25?18:52??kmcluster.m
?????文件????????1703??2011-06-10?14:40??Main.m
?????文件???????13423??2011-06-07?14:49??MergeBlocks.m
?????文件????????1153??2011-06-10?15:07??sampling.m
?????文件????????1587??2011-01-10?10:15??scluster.m
?????文件?????????595??2010-12-26?14:31??segCluster.m
?????文件?????????421??2011-06-07?14:05??showImg.m
?????文件?????????917??2010-12-25?16:34??spectral_cluster.m
?????文件???????53862??2011-01-10?10:00??test.jpg
?????文件?????????289??2010-12-28?16:03??test.m
?????文件???????13412??2010-12-25?10:33??test_128.jpg
?????文件????????8740??2010-12-25?15:43??test_32.jpg
?????文件????????9884??2010-12-25?15:28??test_64.jpg
?????文件?????????296??2011-06-07?13:41??vectorToImg.m
- 上一篇:pathplann-algorithm
- 下一篇:DCT 先用小波變換進行降維后
評論
共有 條評論