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

資源簡介

壓縮包已經給定圖片序列,直接運行程序,可以基于顏色特征提取出關鍵幀。

資源截圖

代碼片段和文件信息

%基于顏色特征轉變法——用顏色直方圖來衡量顏色特征
%會彈出這幾幅關鍵幀的圖像

filenames=dir(‘images/*.jpg‘);??????%圖片來源
num=size(filenames1);??????????????%圖片數量
key=zeros(1num);???????????????????%關鍵幀(01)數組
count=0;????????????????????????????%保存共有幾幀關鍵幀

threshold=0.75;?????????????????????%預定閾值

if?num==0
????error(‘Sorry?there?is?no?pictures?in?images?folder!‘);
else????????????????????????????????%先令首幀為關鍵幀
????img=imread(strcat(‘images/‘filenames(1).name));
????key(1)=1;
????count=count+1;
????%獲取RGB顏色直方圖
????[preCountRx]=imhist(img(::1));???%red?histogram
????[preCountGx]=imhist(img(::2));???%green?histogram
????[preCountBx]=imhist(img(::3));???%blue?histogram
????%顯示首幀關鍵幀
????figure(count);
????imshow(‘images/0001.jpg‘);
????for?k=2:num
????????img=imread(strcat(‘images/‘filenames(k).name));
????????[newCountRx]=imhist(img(::1));???%red?histogram
????????[newCountGx]=imhist(img(::2));???%green?histogram
????????[newCountBx]=imhist(img(::3));???%blue?histogram
????????
????????sR=0;
????????sG=0;
????????sB=0;
????????%運用顏色直方圖法
????????for?j=1:256
??????????sR=min(preCountR(j)newCountR(j))+sR;
??????????sG=min(preCountG(j)newCountG(j))+sG;
??????????sB=min(preCountB(j)newCountB(j))+sB;
????????end
????????dR=sR/sum(newCountR);
????????dG=sG/sum(newCountG);
????????dB=sB/sum(newCountB);
????????%YUVpersons?are?sensitive?to?Y
????????d=0.30*dR+0.59*dG+0.11*dB;
????????
????????if?d????????????key(k)=1;???????????%標記為關鍵幀
????????????count=count+1;
????????????figure(count);
????????????imshow(strcat(‘images/‘filenames(k).name));
????????????%最近?關鍵幀直方圖更新
????????????preCountR=newCountR;
????????????preCountG=newCountG;
????????????preCountB=newCountB;
????????end
????end
end

keyframeIndexes=find(key)

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-04-10?12:55??基于顏色特征的關鍵幀提取代碼\
?????文件????????1933??2017-01-11?09:57??基于顏色特征的關鍵幀提取代碼\featureExtract.m
?????目錄???????????0??2017-04-10?12:55??基于顏色特征的關鍵幀提取代碼\images\
?????文件???????13834??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0001.jpg
?????文件???????24848??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0002.jpg
?????文件???????26083??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0003.jpg
?????文件???????25916??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0004.jpg
?????文件???????26455??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0005.jpg
?????文件???????26282??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0006.jpg
?????文件???????26640??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0007.jpg
?????文件???????26500??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0008.jpg
?????文件???????26858??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0009.jpg
?????文件???????26873??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0010.jpg
?????文件???????25870??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0011.jpg
?????文件???????25659??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0012.jpg
?????文件???????25987??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0013.jpg
?????文件???????26130??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0014.jpg
?????文件???????26972??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0015.jpg
?????文件???????27760??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0016.jpg
?????文件???????27136??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0017.jpg
?????文件???????27295??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0018.jpg
?????文件???????28964??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0019.jpg
?????文件???????27212??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0020.jpg
?????文件???????28215??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0021.jpg
?????文件???????28810??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0022.jpg
?????文件???????29340??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0023.jpg
?????文件???????28895??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0024.jpg
?????文件???????28458??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0025.jpg
?????文件???????27913??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0026.jpg
?????文件???????27867??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0027.jpg
?????文件???????28162??2008-06-24?22:09??基于顏色特征的關鍵幀提取代碼\images\0028.jpg
............此處省略279個文件信息

評論

共有 條評論