function [Images] = ReadImage(ImageCount, Path)
% ImageCount ... pocet obrazu, ktere budou nacteny
% Path ... cesta k obrazum s koncovym c
Image = imread([Path '1' '.bmp']);
Image = im2double(rgb2gray(Image)); % .jpg
%Image = im2double(Image); % .bmp
[Height, Width] = size(Image);
Images = zeros(Height, Width, ImageCount);
Images(:,:,1) = Image;

for i = 2:ImageCount
    Image = imread([Path num2str(i) '.bmp']);
    Image = im2double(rgb2gray(Image));
    Image = im2double(Image);
    Images(:,:,i) = Image;
end
