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

  • 大小: 0.01M
    文件類型: .zip
    金幣: 2
    下載: 0 次
    發布日期: 2024-01-28
  • 語言: 其他
  • 標簽: 其他??

資源簡介

視頻提取脈搏波程序.zip

資源截圖

代碼片段和文件信息

%?function?videofs?=?duquvideo(FPS)
%?
%?[filenamepathname~]=uigetfile({‘*.mov;*.avi;*.mp4;*.wmv;*.mpg;*.asf;*.m4v‘}‘請選擇一個待處理視頻文件‘);
%?videoobj=VideoReader([pathname?filename]);
%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?%?if?nargin?==?0
%?%?????FPS?=?videoobj.frameRate;?%無修正幀率時,使用默認幀率
%?%?end
%?FPS=videoobj.frameRate;
%?%?if?FPS?==?50
%?%?????FPS?=?51.9;?%修正幀率
%?%?end
%?NFS=videoobj.Numberofframes;%幀數
%?
%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%框選面部區域%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?ImgData?=?read(videoobj5);?????%用read讀入視頻文件這里讀取的是第5幀
%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%框選區域%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?hf_func=figure(‘Name‘‘請框選需要計算的區域‘‘Numbertitle‘‘off‘‘menubar‘‘none‘...
%?????‘Units‘‘Normalized‘‘Position‘[0.25?0.25?0.5?0.5]);
%?%?imshow(ImgData);%分離三個通道
%?[XYIm_croprect]=imcrop(ImgData);?????????%roipoly???%ginput
%?line([rect(1)rect(1)][rect(2)rect(2)+rect(4)]);
%?line([rect(1)+rect(3)rect(1)+rect(3)][rect(2)rect(2)+rect(4)]);%rect向量分別為xydeltaxdeltay
%?line([rect(1)rect(1)+rect(3)][rect(2)rect(2)]);
%?line([rect(1)rect(1)+rect(3)][rect(2)+rect(4)rect(2)+rect(4)]);
%?pause(1)
%?close(hf_func);
%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?ImgDatai=ImgData(floor(rect(2)):floor(rect(2)+rect(4))floor(rect(1)):floor(rect(1)+rect(3)):);%框選出來的區域
%?figure;imshow(ImgDatai);%顯示視頻截圖
%?
%?hf_func=figure(‘Name‘‘請框選需要計算的區域‘‘Numbertitle‘‘off‘‘menubar‘‘none‘...
%?????‘Units‘‘Normalized‘‘Position‘[0.25?0.25?0.5?0.5]);
%?[XYIm_croprectl]=imcrop(ImgData);?????????%roipoly???%ginput
%?line([rectl(1)rectl(1)][rectl(2)rectl(2)+rectl(4)]);
%?line([rectl(1)+rectl(3)rectl(1)+rectl(3)][rectl(2)rectl(2)+rectl(4)]);%rect向量分別為xydeltaxdeltay
%?line([rectl(1)rectl(1)+rectl(3)][rectl(2)rectl(2)]);
%?line([rectl(1)rectl(1)+rectl(3)][rectl(2)+rectl(4)rectl(2)+rectl(4)]);
%?pause(1)
%?close(hf_func);
%?
%?hf_func=figure(‘Name‘‘請框選需要計算的區域‘‘Numbertitle‘‘off‘‘menubar‘‘none‘...
%?????‘Units‘‘Normalized‘‘Position‘[0.25?0.25?0.5?0.5]);
%?[XYIm_croprectr]=imcrop(ImgData);?????????%roipoly???%ginput
%?line([rectr(1)rectr(1)][rectr(2)rectr(2)+rectr(4)]);
%?line([rectr(1)+rectr(3)rectr(1)+rectr(3)][rectr(2)rectr(2)+rectr(4)]);%rect向量分別為xydeltaxdeltay
%?line([rectr(1)rectr(1)+rectr(3)][rectr(2)rectr(2)]);
%?line([rectr(1)rectr(1)+rectr(3)][rectr(2)+rectr(4)rectr(2)+rectr(4)]);
%?pause(1)
%?close(hf_func);
%?
%?%?R=ImgData;R(::2)=0;R(::3)=0;figure;imshow(R);?????%分離顯示三個通道
%?%?G=ImgData;G(::1)=0;G(::3)=0;figure;imshow(G);
%?%?B=ImgData;B(::1)=0;B(::2)=0;figure;imshow(B);
%?%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%?RT=zeros(1NFS);GT=RT;BT=RT;?%這三個數組用于記錄RGB三個通道上平均灰度隨時間變化的值
%?for?framesnum=1:NFS???%依次讀取每幀
%?????frame?=?read(videoobjframesnum);?????%用read讀入視頻文件
%?????ImgDatai=fram

?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????6690??2018-09-05?09:05??duquvideo.m
?????文件????????8827??2018-09-05?09:05??maincode.m
?????文件????????8149??2018-09-05?09:05??shipinica.m

評論

共有 條評論