function [n_images]=load_expressions(directory)
% LOAD_EXPRESSIONS: gets the number of files with expression and images and opens them
%
%    Licensing
%
%      GNU GPL version 3
%
%    GENERAL
%
%      Script
%
%    INPUT/S
%
%      -directory: location
%
%    OUTPUT/S
%
%      -n_images: number of images to run through
%
%    PENDING WORK
%
%      -
%
%    KNOWN BUG/S
%
%      -
%
%    COMMENT/S
%
%      -
%
%    RELATED FUNCTION/S
%
%      
%
%    ABOUT
%
%      -Created:     March 2011
%      -Last update: March 2011
%      -Revision:    0.0.1
%      -Author:      Dr. R. S. Schestowitz
% ==============================================================

% directory='~/Facial-Expressions-Recognition/Anger.v3r';

first_frame=readGipFile(directory,1);
n_images=first_frame.frameNumber;

%  for i=1:total
%    image(i)=readGipFile(directory,i);
%  end

% images=size(image)