%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% image toolbox
%% MATLAB file
%% 
%% img2var.m
%% read an image to a varible
%%
%% function u = img2var(imagefile)
%%
%% input:  imagefile: image file name; 
%% output: u: matrix contains image data
%% example: A = img2var( 'image/lena.jpg' );
%%
%% created:       11/23/2003
%% last modified: 12/16/2003
%% author:        jjxu@ucla
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

function u = img2var(imagefile)

u = double(imread(imagefile));

return
