#include <cassert>
#include <iostream>
#include "image_dither_unittest.h"
Go to the source code of this file.
Functions | |
int | main () |
int main | ( | ) |
Definition at line 149 of file image_dither_unittest.cpp.
References images::TestImageDither::set_image(), and images::TestImageDither::test().
00150 { 00151 const char* imgpath_list[] = { 00152 "/data/wa/uds/trunk/sample/Rome1.JPG", 00153 "/data/wa/uds/trunk/sample/Vatican2.JPG", 00154 "/data/wa/uds/trunk/sample/Rome/Rome1.JPG", 00155 "/data/wa/uds/trunk/sample/Rome/Rome2.JPG", 00156 "/data/wa/uds/trunk/sample/alpha/Btn_200_27_transparent_blackborder.png", 00157 "/data/wa/uds/trunk/sample/alpha/Btn_310_27_black.png", 00158 "/data/wa/uds/trunk/sample/alpha/Btn_200_27_black.png", 00159 "/data/wa/uds/trunk/sample/alpha/Btn_310_27_transparent_blackborder.png", 00160 "/data/wa/uds/trunk/sample/alpha/Btn_150_27_transparent_blackborder.png", 00161 "/data/wa/uds/trunk/sample/alpha/Btn_150_27_black.png", 00162 "/data/wa/uds/trunk/sample/alpha/Btn_640_44_black.png", 00163 "/data/wa/uds/trunk/sample/alpha/Btn_640_44_grey.png", 00164 "/data/wa/uds/trunk/sample/alpha/Btn_130_27_transparent_blackborder.png", 00165 "/data/wa/uds/trunk/sample/alpha/Btn_130_27_black.png", 00166 "/data/wa/uds/trunk/sample/Pisa1.JPG", 00167 "/data/wa/uds/trunk/sample/openoffice/maximize.bmp", 00168 "/data/wa/uds/trunk/sample/openoffice/report.bmp", 00169 "/data/wa/uds/trunk/sample/openoffice/cancel_up.bmp", 00170 "/data/wa/uds/trunk/sample/openoffice/euro_3.bmp", 00171 "/data/wa/uds/trunk/sample/openoffice/up.bmp", 00172 "/data/wa/uds/trunk/sample/openoffice/end.bmp", 00173 "/data/wa/uds/trunk/sample/openoffice/okay_up.bmp", 00174 "/data/wa/uds/trunk/sample/openoffice/euro_2.bmp", 00175 "/data/wa/uds/trunk/sample/openoffice/down.bmp", 00176 "/data/wa/uds/trunk/sample/openoffice/Import_4.bmp", 00177 "/data/wa/uds/trunk/sample/openoffice/Import_1.bmp", 00178 "/data/wa/uds/trunk/sample/openoffice/XML-Import_2-1.bmp", 00179 "/data/wa/uds/trunk/sample/openoffice/MS-Import_2-1.bmp", 00180 "/data/wa/uds/trunk/sample/openoffice/minimize.bmp", 00181 "/data/wa/uds/trunk/sample/openoffice/MS-Import_2-3.bmp", 00182 "/data/wa/uds/trunk/sample/openoffice/cancel_down.bmp", 00183 "/data/wa/uds/trunk/sample/openoffice/XML-Import_2-3.bmp", 00184 "/data/wa/uds/trunk/sample/openoffice/euro_1.bmp", 00185 "/data/wa/uds/trunk/sample/openoffice/XML-Import_2-4.bmp", 00186 "/data/wa/uds/trunk/sample/openoffice/okay_down.bmp", 00187 "/data/wa/uds/trunk/sample/openoffice/XML-Import_2-2.bmp", 00188 "/data/wa/uds/trunk/sample/openoffice/MS-Import_2-2.bmp", 00189 "/data/wa/uds/trunk/sample/openoffice/Import_3.bmp", 00190 "/data/wa/uds/trunk/sample/Florence3.JPG", 00191 "/data/wa/uds/trunk/sample/Florence/Florence1.JPG", 00192 "/data/wa/uds/trunk/sample/Florence/Florence3.JPG", 00193 "/data/wa/uds/trunk/sample/Florence/Florence4.JPG", 00194 "/data/wa/uds/trunk/sample/Florence/Florence2.JPG", 00195 "/data/wa/uds/trunk/sample/Venice3.JPG", 00196 "/data/wa/uds/trunk/sample/Screenshot.png", 00197 "/data/wa/uds/trunk/sample/Venice1.JPG", 00198 "/data/wa/uds/trunk/sample/Venice4.JPG", 00199 "/data/wa/uds/trunk/sample/OURS/OURS2.JPG", 00200 "/data/wa/uds/trunk/sample/OURS/OURS3.JPG", 00201 "/data/wa/uds/trunk/sample/OURS/OURS4.JPG", 00202 "/data/wa/uds/trunk/sample/OURS/OURS5.JPG", 00203 "/data/wa/uds/trunk/sample/OURS/OURS1.JPG", 00204 "/data/wa/uds/trunk/sample/Florence4.JPG", 00205 "/data/wa/uds/trunk/sample/Venice6.JPG", 00206 "/data/wa/uds/trunk/sample/Florence2.JPG", 00207 "/data/wa/uds/trunk/sample/Vatican/Vatican2.JPG", 00208 "/data/wa/uds/trunk/sample/Vatican/Vatican1.JPG", 00209 "/data/wa/uds/trunk/sample/Venice2.JPG", 00210 "/data/wa/uds/trunk/sample/Rome2.JPG", 00211 "/data/wa/uds/trunk/sample/Venice5.JPG", 00212 "/data/wa/uds/trunk/sample/Florence.jpg", 00213 "/data/wa/uds/trunk/sample/消化系统示意图.JPG", 00214 "/data/wa/uds/trunk/sample/Venice/Venice3.JPG", 00215 "/data/wa/uds/trunk/sample/Venice/Venice1.JPG", 00216 "/data/wa/uds/trunk/sample/Venice/Venice4.JPG", 00217 "/data/wa/uds/trunk/sample/Venice/Venice6.JPG", 00218 "/data/wa/uds/trunk/sample/Venice/Venice2.JPG", 00219 "/data/wa/uds/trunk/sample/Venice/Venice5.JPG", 00220 "/data/wa/uds/trunk/sample/Vatican1.JPG", 00221 "/data/wa/uds/trunk/sample/PISA/Pisa1.JPG", 00222 "/data/wa/uds/trunk/sample/gif/flowers.gif", 00223 "/data/wa/uds/trunk/sample/gif/sky.gif", 00224 "/data/wa/uds/trunk/sample/gif/flower.gif", 00225 "/data/wa/uds/trunk/sample/gif/apples.gif", 00226 "/data/wa/uds/trunk/sample/gif/bigapple.gif" 00227 }; 00228 00229 TestImageDither test; 00230 std::string filepath; 00231 00232 int n_images = sizeof(imgpath_list) / sizeof(imgpath_list[0]); 00233 for (int i = 0; i < n_images; i++) 00234 { 00235 filepath = imgpath_list[i]; 00236 test.set_image(filepath); 00237 test.test(); 00238 } 00239 00240 return 0; 00241 }