static inline uint8_t transpose(uint8_t x, uint8_t y) { uint8_t data=0; for(uint8_t i=0; i<8; i++) { data=data<<1; data |= test_pixel(x+i,y); } return data; }
int main(int argc, unsigned char* argv[]) { #ifdef NO_ASL //test_integral_image(); //performance_test(); #endif test_resample(); test_convolve(); test_pixel(); // test_pixel_iterator(); // test_image_io(); test_image(); // test_image_tiler(); return 0; }
int main(int argc, char* argv[]) { test_pixel(); test_channel(); test_pixel_iterator(); test_image_io(); const char* local_name = "gil_reference_checksums.txt"; const char* name_from_status = "../libs/gil/test/gil_reference_checksums.txt"; std::ifstream file_is_there(local_name); if (file_is_there) { test_image(local_name); } else { std::ifstream file_is_there(name_from_status); if (file_is_there) test_image(name_from_status); else { std::cerr << "Unable to open gil_reference_checksums.txt"<<std::endl; return 1; } } return 0; }