├── ComputingFuncition ├── LAP.m ├── LBAP.m ├── LBAP10P.m ├── LBAP12P.m ├── LBAP4P.m ├── LBAP6P.m └── LBAP8P.m └── README.txt /ComputingFuncition/LAP.m: -------------------------------------------------------------------------------- 1 | function [ LapH ] = LAP( Cs, n_theta ,dp) 2 | % 3 | 4 | % 5 | CsE = [ Cs(end-dp+1:end,:);Cs;Cs(1:dp,:) ]; 6 | % % 7 | % figure(100) 8 | % plot(CsE(:,1),CsE(:,2),'r','linewidth',2); 9 | % % 10 | % pause 11 | 12 | % 13 | dA = 2*pi/n_theta; 14 | % 15 | Lap = zeros(length(Cs),1); 16 | 17 | % 18 | for i = dp+1:length(CsE)-dp 19 | % 取出3点 20 | TPs = CsE([i-dp i i+dp],:); 21 | % 以中间点为原点,平移 22 | StartV = TPs(1,:)-TPs(2,:); 23 | EndV = TPs(3,:)-TPs(2,:); 24 | % 获得起止点角度 25 | StartA = atan2(StartV(2),StartV(1)); 26 | EndA = atan2(EndV(2),EndV(1)); 27 | % 28 | Adiff = EndA - StartA; 29 | % 30 | if Adiff>=0 31 | % 32 | Lap(i-dp) = Adiff; 33 | else 34 | % 35 | Lap(i-dp) = Adiff+2*pi; 36 | end 37 | 38 | end 39 | 40 | % 41 | Lap = ceil(Lap/dA); 42 | % 43 | 44 | % 统计直方图 45 | LapH = zeros(n_theta,1); 46 | % 47 | for j = 1:n_theta 48 | % 49 | LapH(j) = length(find(Lap==j)); 50 | end 51 | 52 | 53 | end 54 | 55 | -------------------------------------------------------------------------------- /ComputingFuncition/LBAP.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP.m -------------------------------------------------------------------------------- /ComputingFuncition/LBAP10P.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP10P.m -------------------------------------------------------------------------------- /ComputingFuncition/LBAP12P.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP12P.m -------------------------------------------------------------------------------- /ComputingFuncition/LBAP4P.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP4P.m -------------------------------------------------------------------------------- /ComputingFuncition/LBAP6P.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP6P.m -------------------------------------------------------------------------------- /ComputingFuncition/LBAP8P.m: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/guijiejie/Angular-Pattern-and-Binary-Angular-Pattern-for-Shape-Retrieval/2d2088d4ce42e84ccc432e8e8596b79784af6c9b/ComputingFuncition/LBAP8P.m -------------------------------------------------------------------------------- /README.txt: -------------------------------------------------------------------------------- 1 | References: Rong-Xiang Hu, Wei Jia, Haibin Ling, Yang Zhao, Jie Gui, "Angular pattern and binary angular pattern for shape retrieval", IEEE Transactions on Image Processing, vol. 23, no. 3, pp. 1118-1127, 2014 . 2 | 3 | ATTN: This package is free for academic usage. You can run it at your own risk. For other purposes, please contact Jie Gui (guijie@ustc.edu). 4 | 5 | Requirement: The package was developed with MATLAB. 6 | 7 | This package was developed by Mr. Rong-Xiang Hu. For any problem concerning the code, please feel free to contact Mr. Hu (hurongxiang2008@gmail.com). --------------------------------------------------------------------------------