91av视频/亚洲h视频/操亚洲美女/外国一级黄色毛片 - 国产三级三级三级三级

  • 大小: 415KB
    文件類型: .rar
    金幣: 1
    下載: 0 次
    發布日期: 2021-01-11
  • 語言: 其他
  • 標簽: K-Means??Matlab??

資源簡介

基于K-Means的圖像分割與融合,應用了 K-Means 分割方法,進行對“前景圖像”中的目標對象進行分割,將另一幅圖像(即“背景圖像”)和 目標對象融合,得到新的融合圖像

資源截圖

代碼片段和文件信息

%?主程序?
%?1、應用了?K-Means?分割方法,進行對“前景圖像”中的目標對象進行分割,即?進行二分類將目標對象進行提取
%?2、將另一幅圖像(即“背景圖像”)和?目標對象?進行rgb?轉?hsi,然后將目標對象中的hsi嵌入到(代替)“背景圖像”
%????中的hsi,得到合成的hsi
%?3、將合成的hsi進行逆變化成rgb空間中,并顯示新的融合圖像
clear?close?all
%%?讀取圖像
%?讀入包含目標對象的“前景圖像”
%?foreground_from_image?=?‘zebra.jpg‘;????%?數據1
%?foreground_from_image?=?‘dog.jpg‘;????%?數據2
foreground_from_image?=?‘fish.jpg‘;???%?數據3
%?讀入“背景圖像”
%?background_image?=?‘zebra_background.jpg‘;
%?background_image?=?‘dog_background.jpg‘;
background_image?=?‘fish_background.jpg‘;

main?=?cd(‘images‘);????????????????????%?指定當前工作目錄給main?
sImg?=?imread(foreground_from_image);???%?讀入“前景圖像”
tImg?=?imread(background_image);????????%?讀入“背景圖像”
cd(main);???????????????????????????????%?切換當前工作目錄到demos
%%?分割
%分割“前景圖像”,計算目標對象在“前景圖像”中的坐標索引(index)
weight?=?5;??

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----

?????文件???????2501??2018-05-26?20:17??Image_Segmentation\image_segmentation\demo.m

?????文件???????1930??2018-05-26?13:53??Image_Segmentation\image_segmentation\hsi2rgb.m

?????文件??????33590??2014-10-27?15:20??Image_Segmentation\image_segmentation\images\dog.jpg

?????文件??????86442??2014-10-27?15:20??Image_Segmentation\image_segmentation\images\dog_background.jpg

?????文件??????23595??2018-05-26?17:39??Image_Segmentation\image_segmentation\images\fish.jpg

?????文件??????24566??2018-05-26?14:46??Image_Segmentation\image_segmentation\images\fish_background.jpg

?????文件??????72839??2014-10-27?15:20??Image_Segmentation\image_segmentation\images\zebra.jpg

?????文件?????190572??2018-05-26?16:05??Image_Segmentation\image_segmentation\images\zebra_background.jpg

?????文件???????3136??2014-10-27?15:20??Image_Segmentation\image_segmentation\KMeansClustering.m

?????文件???????1930??2014-10-27?15:20??Image_Segmentation\image_segmentation\makeLMfilters.m

?????文件???????1528??2018-05-26?13:53??Image_Segmentation\image_segmentation\rgb2hsi.m

?????文件???????2441??2014-10-27?15:20??Image_Segmentation\image_segmentation\segmentImg.m

?????文件???????2881??2018-05-26?17:19??Image_Segmentation\image_segmentation\segmentImgExtra.m

?????文件???????2902??2018-05-26?20:02??Image_Segmentation\image_segmentation\transferImg.m

?????文件??????????0??2014-10-27?15:20??Image_Segmentation\README.md

?????目錄??????????0??2018-05-27?21:17??Image_Segmentation\image_segmentation\images

?????目錄??????????0??2018-05-27?21:18??Image_Segmentation\image_segmentation

?????目錄??????????0??2018-05-27?21:17??Image_Segmentation

-----------?---------??----------?-----??----

???????????????450853????????????????????18


評論

共有 條評論