Code covered by the BSD License
-
...
USAGE: splits the image function x into half:
-
[W,Z,O,E]=msnn1(t,xcell,noHid...
This is a msnn backpropagation algorithm with 1 hiddenlayer
-
[WX,ZX,O,E]=msnn2(t,xcell,noH...
This is a msnn backpropagation algorithm with 1 hiddenlayer
-
convolution(I,selectedeye)
USAGE: this function performs convolution search on I
-
convolutionnex(I,selectedeye)
USAGE: this function performs convolution search on I
-
draw_lines(L, X, Y, lt)
-
eyecrop_testim(im)
USAGE: this function allows the user to select and crop
-
eyesearch(dataleft,dataright,...
-
eyesearch_amend(dataleft,data...
-
imline(I, p1x, p1y, p2x, p2y)
This function draws lines on a grayscale image I
-
imrect(I,ltx,lty,rbx,rby)
This function draws rectangles on a grayscale image I
-
logsigfx(t);
-
maxposition(I, n, range)
This function retrieves the max n position
-
prescale(x)
-
tansigfx(t);
-
detect.m
-
detecteyes.m
-
geteyelevel.m
-
main.m
-
readimage.m
-
traindata_newfinal.m
-
traineyes_datafinal.m
-
traineyes_testSHIFT.m
-
traineyes_valfinal.m
-
traintest_newfinal.m
-
validation.m
-
View all files
from
Morphological Shared-Weight Neural Network for Face Recognition
by Ethan Png
MSNN has the ability to learn feature extraction and perform classification at the same time.
|
| prescale(x)
|
function [p] = prescale(x)
% USAGE: prescales image function x to "0 to 1" or "-1 to +1" domain range
x=double(x);
maxp=max(max(x));
maxp=max(maxp');
minp=min(min(x));
minp=min(minp');
% converts image to "0 to 1" range
p = (x-minp)/(maxp-minp);
% converts image to "-1 to +1" range
% p = 2*(x-minp)/(maxp-minp)-1;
|
|
Contact us at files@mathworks.com