function [ ] = BatTestPanelExtration( filepath )
 
% Input is the manga pages
% Output (PagePanels) is the polygons for panels in each manga page
% Function CheckPanel_display draw the extracted panel shapes

% A Robust Panel Extraction Method for Manga
% Copyright (c) by Xufang PANG, 2015-12-12

 
if nargin<1
    clear all;
    close all;
    filepath = 'Data\';   %17
    pageNum = 2;
 
end

PagePanels = {};

for i=1:pageNum
    % display(i);
    
    % close all;
    file = [filepath num2str(i) '.jpg'];
    I = imread(file);
 
    [panels] = ExtractPanelShape(I,i);
    PagePanels{i} = panels;

    CheckPanel_display( I,panels,i);
end 


save PagePanels PagePanels;

end

