summaryrefslogtreecommitdiffstats
path: root/baseline/source/rijndael_enc
Commit message (Expand)AuthorAge
* Convert TACLeBench to use new libextra APIJoshua Bakita2020-10-20
* TACLe and DIS benchmark fixesJoshua Bakita2020-10-20
* Unify all the versions of extra.h into a single multipurpose headerJoshua Bakita2020-10-19
* Cleanup in extra.h for non-paired benchmarksJoshua Bakita2020-10-17
* Reorganize and commit all the modified TACLeBench code and run scriptsJoshua Bakita2019-10-07
22'>22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188



























































































































































































                                                                                                 
% function [xs,ys,gx,gy,par,threshold,mag,mage,g,FIe,FIo,mago] = quadedgep(I,par,threshold);
% Input:
%    I = image
%    par = vector for 4 parameters
%      [number of filter orientations, number of scale, filter size, elongation]
%      To use default values, put 0.
%    threshold = threshold on edge strength
% Output:
%    [x,y,gx,gy] = locations and gradients of an ordered list of edgels
%       x,y could be horizontal or vertical or 45 between pixel sites
%       but it is guaranteed that there [floor(y) + (floor(x)-1)*nr] 
%       is ordered and unique.  In other words, each edgel has a unique pixel id.
%    par = actual par used
%    threshold = actual threshold used
%    mag = edge magnitude
%    mage = phase map
%    g = gradient map at each pixel
%    [FIe,FIo] = odd and even filter outputs
%    mago = odd filter output of optimum orientation

% Stella X. Yu, 2001

% This is the multi scale version of the filtering
% For the moment the parameters are defined by default. See line 34


function [x,y,gx,gy,par,threshold,mag_s,mage,g,FIe,FIo,mago] = quadedgep2(I,par,data,threshold);


if nargin<4 | isempty(threshold),
    threshold = 0.1;
end

[r,c] = size(I);
def_par = [4,30,3];

display_on = 1;

% take care of parameters, any missing value is substituted by a default value
if nargin<2 | isempty(par),
   par = def_par;
end
% par(end+1:4)=0;
% par = par(:);
% j = (par>0);
% have_value = [ j, 1-j ];
% j = 1; n_filter = have_value(j,:) * [par(j); def_par(j)];
% j = 2; n_scale  = have_value(j,:) * [par(j); def_par(j)];
% j = 3; winsz    = have_value(j,:) * [par(j); def_par(j)];
% j = 4; enlong   = have_value(j,:) * [par(j); def_par(j)];

n_ori = par(1);      %if it doesn't work, par<-def_par

winsz = par(2);
enlong = par(3);

% always make filter size an odd number so that the results will not be skewed
j = winsz/2;
if not(j > fix(j) + 0.1),
    winsz = winsz + 1;
end

% filter the image with quadrature filters 
if (isempty(data.W.scales))
        error ('no scales entered');
end

n_scale=length(data.W.scales);
filter_scales=data.W.scales;
%     
% if strcmp(data.dataWpp.mode,'multiscale')
%     n_scale=size((data.dataWpp.scales),2);
%     filter_scales=data.dataWpp.scales;
% else
%     filter_scales=data.dataWpp.scales(1);
%     n_scale=1;
% end
% if n_scale>0&&strcmp(data.dataWpp.mode,'multiscale')
%     if (~isempty(data.dataWpp.scales))
%         filter_scales=data.dataWpp.scales;
%     else
%         filter_scales=zeros(1,n_scale);
%         
%         for i=1:n_scale,
%         filter_scales(i)=(sqrt(2))^(i-1);
%         end
%         data.dataWpp.scales=filter_scales;
%     end
% else filter_scale=1;
%     data.dataWpp.scales=filter_scales;
% end
% 
% %%%%%%% juste pour que ca tourne
% if ~strcmp(data.dataWpp.mode,'multiscale')
%     filter_scales=data.dataWpp.scales(1);
%     n_scale=4;
% end