亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? images2ts.m

?? 彩色圖像紋理提取的一種算法
?? M
?? 第 1 頁 / 共 2 頁
字號:
% Taken from Dr. Keogh's image2bmp.m, modified by Adam Meadows% function: images2ts% description: convert a cell array of images into a collection of time% series% author: Li Wei & Xiaopeng Xi (modified by Adam Meadows)% last updated: 06/05/2006%% - add an input parameter 'do_plot'%                           do_plot = 1, draw the extraction process%                           otherwise,   don't draw% - add two input parameters 'method'%                           method =0, centroid extraction%                           method =1, angle extraction%                           'option'%                           option = 1, nomalize and interpolate to the same length%                           otherwise, don't do it% - update the profile_extraction function (using the distance to centroid% now) and fix a backtrace bug caused by noisefunction freq = images2ts(imgs, do_plot, option, method)close all;index = 1;seq_grup = zeros(1,1);          % return value of empty folder caseseqcoor_grup = zeros(1,1);      % store the value of profile coordinatesfor i = 1 : length(imgs)        old = imgs{i};    % ##### rescale the images ####    sizevector = size(old);    num_of_dim = ndims(old);    newim = old;    if (num_of_dim == 3)        if (sizevector(1) ~= sizevector(2))            if (sizevector(1) > sizevector(2))                                        newim(:, sizevector(2)+1:sizevector(1), :) = 0;                                    else                                        newim(sizevector(1)+1:sizevector(2), :, :) = 0;            end        end    end    if (num_of_dim == 2)        if (sizevector(1) ~= sizevector(2))            if (sizevector(1) > sizevector(2))                                        new(:, sizevector(2)+1:sizevector(1)) = 0;                                    else                                        newim(sizevector(1)+1:sizevector(2), :) = 0;            end        end    end       index = index + 1;    [seq, seqcoor] = profile_extraction(old, do_plot, method);    %keep track of the size of Timeseries    sizes = size(seq);    seq(sizes(2)+1) = sizes(2);     %keep track of the size of coordinate    sizes2 = size(seqcoor);    seqcoor(sizes2(2)+1) = sizes2(2);     %====== Adds the newly generated time series -- seq into the     %existing time series -- seq_grup ===================    [newseq_num, max_size] = size(seq);    if newseq_num == 0        continue;    end    oldsize = size(seq_grup);    if max_size > oldsize(2)    % all the previous stored seq need to be restored        if oldsize(2) == 1      % seq_grup contains no useful data yet            seq_grup = seq;     % reallocate the seq_grup        else            tmp = zeros(newseq_num+oldsize(1), max_size);   % already has values inside seq_grup            padnum = max_size - oldsize(2);                 % get the pad array for the new storation            pad = zeros(1,padnum);            for i = 1:oldsize(1)                tmp(i,:) = [seq_grup(i,:),pad];                tmp(i,oldsize(2)) = [0];                    % clear old size info                tmp(i,max_size) = seq_grup(i,oldsize(2));   % move the size info backwards            end            tmp(oldsize(1)+1:oldsize(1)+newseq_num,:) = seq;            seq_grup = tmp;        end                     else                    %no need to reallocate the original seq_grup, just copy the new seq into the new rows of it.        padnum = oldsize(2) - max_size; % the new seq need be expanded by pad        pad = zeros(1,padnum);        for padind = 1:padnum            pad(padind) = 0;        end;        tmp = zeros(newseq_num, oldsize(2));        for i = 1:newseq_num            tmp(i,:) = [seq(i,:),pad];            tmp(i,max_size) = [0];%clear old size info            tmp(i,oldsize(2)) = seq(i,max_size);%move the size info backwards        end;        seq_grup(oldsize(1)+1:oldsize(1) + newseq_num,:) = tmp;    end;    % ====== Adds the newly generated coordinates -- seqcoor into the     % existing time series -- seqcoor_grup ===================    [newseq_num, max_size] = size(seqcoor);    if newseq_num == 0        continue;    end    oldsize = size(seqcoor_grup);    if max_size > oldsize(2)  % all the previous stored seq need to be restored        if oldsize(2) == 1% seq_grup contains no useful data yet            seqcoor_grup = seqcoor;%reallocate the seq_grup        else            tmp = zeros(newseq_num+oldsize(1), max_size);% already has values inside seq_grup            padnum = max_size - oldsize(2);    % get the pad array for the new storation            pad = zeros(1,padnum);            for i = 1:oldsize(1)                tmp(i,:) = [seqcoor_grup(i,:),pad];                tmp(i,oldsize(2)) = [0];%clear old size info                tmp(i,max_size) = seqcoor_grup(i,oldsize(2));%move the size info backwards            end            tmp(oldsize(1)+1:oldsize(1)+newseq_num,:) = seqcoor;            seqcoor_grup = tmp;        end;%ending up the case which need to expand the original seq_grup    else %no need to reallocate the original seq_grup, just copy the new seq into the new rows of it.        padnum = oldsize(2) - max_size; % the new seq need be expanded by pad        pad = zeros(1,padnum);        for padind = 1:padnum            pad(padind) = 0;        end        tmp = zeros(newseq_num, oldsize(2));        for i = 1:newseq_num            tmp(i,:) = [seqcoor(i,:),pad];            tmp(i,max_size) = [0];%clear old size info            tmp(i,oldsize(2)) = seqcoor(i,max_size);%move the size info backwards        end        seqcoor_grup(oldsize(1)+1:oldsize(1) + newseq_num,:) = tmp;    end              end% normalize seq_grup and resample them to be same lengthif option == 1    newseq_grup = resampleAndNorm(seq_grup);    %save(freqfile, 'newseq_grup', '-ascii');    freq = newseq_grup;else    %save(freqfile, 'seq_grup', '-ascii');        freq = seq_grup;end% =========== local function ===============function [TimeSeriesSeq, seqcoor] = profile_extraction(image, do_plot, method)I = image;row = size(I,1);col = size(I,2);%TBD: for now assume color imagesC = 1;if C == 1     J = rgb2gray(I);     se0 = strel('line', 2, 90);     se1 = strel('line', 2, 0);     J = imdilate(J, [se0,se1]);     J = imfill(J,'hole');     seD = strel('diamond',1);     J = imerode(J,seD);     J = im2bw(J,0.2);     J = edge(J, 'sobel',(graythresh(I) * .1));         k1 = find(J==0);     k2 = find(J==1);     if size(k1,1) == 0 | size(k2,1) == 0        J = rgb2gray(I);        J = im2bw(J,0.6);        se0 = strel('line', 1, 90);        se1 = strel('line', 1, 0);        J = imdilate(J, [se0,se1]);        seD = strel('diamond',1);        J = imerode(J,seD);        J = medfilt2(J,[6 6]);        J = edge(J, 'sobel',(graythresh(I) * .1));    end;else    temp = double(I);    J = edge(temp, 'sobel',(graythresh(temp) * .1));end;if do_plot == 1    figure, subplot(2,1,1);    imshow(J);    hold on;end;%    Get the coordinate of edge:			%   Scan according to the order up-down, left-right;%   Treat the matrix as a sparse matrix; 'find' returns the x/y of non-0 pixels]%   c = [i, j, v] to display i, j, v in three columns.Leaf_edge = double(J);[imgmatrix_x,imgmatrix_y] = size(Leaf_edge);%allocate the all 0 matrix as same size as the 0/1 image, to later on check if the neighbour are selected out or notChecking_matrix = zeros(imgmatrix_x,imgmatrix_y);[i_coordinate,j_coordinate,v] = find(Leaf_edge); %plot(j_coordinate(20), i_coordinate(20), 'g+');%    Start from the first non-0 value clock-wise to find the sequence of angles%   (adjacent two pixels).eg : Check (i, j)'s neighbour. Order should  be: %   (i-1,j), (i-1,j+1), (i,j+1), (i+1,j+1), (i+1,j), (i+1, j-1), (i,j-1), (i-1,j-1). %   The neighbor that has checked before should be omitted from the 8 possible neighbors checking. %   Only 1/7 is selected out.c = [i_coordinate, j_coordinate].'; %two rows, each column are the coordinate of the leaf pixelnum = nnz(Leaf_edge);N =   [1 1 0 -1 -1 -1 0 1; 0 1 1 1 0 -1 -1 -1];N1 =  [1 1 0 -1 -1 -1 0 1; 0 1 1 1 0 -1 -1 -1];N11 = [-1 -1 0 1 1 1 0 -1; 0 -1 -1 -1 0 1 1 1];N2 = [-2 -2 -2 -1  0  1  2  2  2  2  2  1  0  -1  -2 -2;        0 1  2  2  2  2  2  1  0 -1 -2 -2 -2  -2  -2 -1];N3 = [-3 -3 -3 -3 -2 -1  0  1  2  3  3  3  3  3  3  3  2  1  0 -1 -2 -3 -3 -3;         0  1  2  3  3  3  3  3  3  3  2  1  0 -1 -2 -3 -3 -3 -3 -3 -3 -3 -2 -1];%%%%%%   seq = timeseries(i_coordinate, j_coordinate);% convert the coordinate of the edge to the sequence of edge shape.%%%%%%   function seq = timeseries(x, y)n = size(i_coordinate);seq_coordinate = zeros(2,n(1));  % Preallocate matrix for clockwise ordered leaf pixels%find non-zero pixel in the 8 neighboursi = i_coordinate(1);j = j_coordinate(1);%plot(j,i,'b+');findpixel = false;while Leaf_edge(i,j) == 0    total_nb_cand = size(N1,2);    for nb_cand = 1 : total_nb_cand        i1 = i + N1(1, nb_cand);        j1 = j + N1(2, nb_cand);        if (Leaf_edge(i1,j1)~=0)            i = i1;            j = j1;            findpixel = true;            break;        end;    end;    if(findpixel == false)   % find non-zero pixels in the farther neighbours        total_nb_cand = size(N2,2);        for nb_cand = 1 : total_nb_cand            i1 = i + N2(1,nb_cand);            j1 = j + N2(2, nb_cand);           if (Leaf_edge(i1,j1)~=0)                i = i1;                j = j1;                findpixel = true;                break;            end;        end;    end;    if(findpixel == false)        total_nb_cand = size(N3,2);        for nb_cand = 1 : total_nb_cand            i1 = i + N3(1,nb_cand);            j1 = j + N3(2, nb_cand);           if (Leaf_edge(i1,j1)~=0)                i = i1;                j = j1;

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久99国产精品成人| 97久久超碰国产精品电影| 国产成人综合视频| 欧美视频在线一区二区三区| 国产亚洲人成网站| 日韩精品乱码免费| 91一区二区在线观看| 精品国产一区二区三区四区四| 一区二区三区免费网站| 国产成人精品免费| 日韩欧美一卡二卡| 午夜精品久久久| 91国产成人在线| 中文字幕一区二区三区四区不卡| 久久国产综合精品| 欧美剧情片在线观看| 亚洲激情六月丁香| www.成人网.com| 欧美激情综合五月色丁香| 卡一卡二国产精品| 69av一区二区三区| 亚洲自拍偷拍麻豆| 日本韩国精品一区二区在线观看| 国产精品免费视频观看| 国产一区欧美二区| 日韩女优av电影| 日本91福利区| 日韩视频在线永久播放| 午夜精品aaa| 在线播放日韩导航| 五月天精品一区二区三区| 欧美色图在线观看| 亚洲一区二区三区中文字幕在线| 91丝袜呻吟高潮美腿白嫩在线观看| 亚洲国产高清aⅴ视频| 国产91清纯白嫩初高中在线观看| 久久九九全国免费| 懂色av中文一区二区三区| 中文字幕国产精品一区二区| 国产成+人+日韩+欧美+亚洲 | 国产一区二区福利视频| 欧美成人伊人久久综合网| 久久丁香综合五月国产三级网站| 日韩一区二区三区四区| 国内外成人在线视频| www亚洲一区| 国产91对白在线观看九色| 国产精品成人免费| 欧美在线三级电影| 日本亚洲电影天堂| 2020国产精品自拍| 99国内精品久久| 日韩激情一二三区| 国产欧美va欧美不卡在线| jiyouzz国产精品久久| 夜夜精品浪潮av一区二区三区| 欧美伦理影视网| 国产一区二区视频在线| 亚洲免费看黄网站| 欧美在线free| 日韩av一区二| 国产精品入口麻豆九色| 色一情一伦一子一伦一区| 亚洲国产一区二区视频| 日韩欧美激情在线| 91在线观看地址| 免费xxxx性欧美18vr| 国产精品女人毛片| 欧美一区二区三区四区高清| 国产成人综合亚洲91猫咪| 一区二区三区丝袜| www亚洲一区| 欧美高清你懂得| 国产成人精品一区二区三区四区| 夜色激情一区二区| 久久久精品国产免费观看同学| 欧美在线不卡视频| 成人晚上爱看视频| 免费三级欧美电影| 亚洲黄色小说网站| 国产偷v国产偷v亚洲高清| 欧美日韩国产bt| 波多野结衣中文字幕一区二区三区 | 激情六月婷婷久久| 亚洲午夜久久久久久久久久久| 国产日产精品一区| 日韩免费电影一区| 欧美婷婷六月丁香综合色| 国产久卡久卡久卡久卡视频精品| 午夜日韩在线电影| 亚洲婷婷综合久久一本伊一区| 欧美精品在线一区二区| 日本电影亚洲天堂一区| 丰满少妇久久久久久久| 久久精品国产亚洲aⅴ| 亚洲视频一二三| 国产日韩精品一区| 久久嫩草精品久久久精品一| 欧美大片拔萝卜| 在线不卡中文字幕| 欧美丰满少妇xxxbbb| 在线精品视频免费播放| 91啦中文在线观看| 粉嫩av一区二区三区在线播放| 精品一二三四区| 久久国产剧场电影| 黄网站免费久久| 久久不见久久见免费视频7| 天天综合日日夜夜精品| 亚洲成人三级小说| 亚洲v日本v欧美v久久精品| 一区av在线播放| 亚洲影院理伦片| 亚洲综合区在线| 亚洲国产成人av网| 日韩精品一区第一页| 日韩精品欧美精品| 久久99精品视频| 国产在线日韩欧美| 福利电影一区二区三区| 东方欧美亚洲色图在线| 成人动漫在线一区| 91丨porny丨蝌蚪视频| 91最新地址在线播放| 色婷婷亚洲一区二区三区| 日本韩国精品一区二区在线观看| 欧美在线|欧美| 91精品国产色综合久久不卡蜜臀| 日韩三级中文字幕| 久久精品视频一区二区三区| 国产精品久久久久影院老司| 亚洲人成网站精品片在线观看| 亚洲与欧洲av电影| 韩国欧美国产一区| 国产不卡视频一区二区三区| 成人性生交大合| 欧洲在线/亚洲| 欧美成人a∨高清免费观看| 久久影院视频免费| 亚洲美女一区二区三区| 日韩高清不卡一区| 国产传媒久久文化传媒| 91精品福利在线| 精品国产自在久精品国产| 欧美韩日一区二区三区四区| 亚洲综合999| 国产毛片精品一区| 一道本成人在线| 精品成人在线观看| 一区二区三区不卡在线观看 | 91在线你懂得| 欧美精选午夜久久久乱码6080| 久久综合九色综合欧美就去吻| 最新国产の精品合集bt伙计| 婷婷综合五月天| 成人福利在线看| 在线播放视频一区| 专区另类欧美日韩| 精品在线免费视频| 欧美色欧美亚洲另类二区| 久久久精品中文字幕麻豆发布| 一区二区三区高清| 国产91在线看| 日韩女优视频免费观看| 亚洲国产精品久久久久婷婷884| 国产激情视频一区二区在线观看| 欧美日韩一本到| 中文字幕不卡的av| 久久99精品久久久久久| 在线观看亚洲专区| 中文字幕不卡一区| 国产乱码一区二区三区| 884aa四虎影成人精品一区| 亚洲欧美日韩中文字幕一区二区三区| 亚洲大片在线观看| 色婷婷av一区二区三区软件 | 亚洲免费观看高清完整| 国产成人日日夜夜| 精品乱人伦小说| 天堂va蜜桃一区二区三区| 色婷婷亚洲一区二区三区| 国产精品久久久久久久久搜平片| 精品中文字幕一区二区小辣椒| 欧美日韩国产bt| 五月天激情综合| 色国产精品一区在线观看| 国产精品久久久久四虎| 国产91精品入口| 国产午夜精品一区二区三区嫩草| 久久精品国产一区二区| 精品日本一线二线三线不卡 | 亚洲欧美日韩国产另类专区| 国产精品亚洲综合一区在线观看| 日韩欧美中文字幕公布| 日韩成人一区二区| 日韩欧美国产三级| 国产在线精品免费| 日本一区二区三区电影| av色综合久久天堂av综合| 国产精品美女久久久久久久网站|