@@ -196,10 +196,8 @@ namespace POLPro
196
196
}
197
197
// Convert to uint16
198
198
199
- // BOOST_LOG_TRIVIAL(debug) << "The min and maximum of the converted image : \n " ;
200
199
for (int i = 0 ; i < img.size (); ++i){
201
200
img[i].convertTo (img[i], CV_16U);
202
- // BOOST_LOG_TRIVIAL(debug) << minmax(img[i], "Img" + std::to_string(i));
203
201
}
204
202
205
203
}
@@ -231,7 +229,6 @@ namespace POLPro
231
229
// we need to shift the image next to each other properly
232
230
int offset_col = i % 2 ;
233
231
int offset_row = i / 2 ;
234
- // BOOST_LOG_TRIVIAL(debug) << minmax(img[i], "origin"+ std::to_string(i));
235
232
236
233
img[i].copyTo (output_img (
237
234
cv::Rect (img_size.width * offset_col,
@@ -345,44 +342,3 @@ int main(int argc, char *argv[]) {
345
342
346
343
347
344
348
- /* // reading the files using boost library.
349
-
350
- path apk_path(dirName);
351
-
352
- recursive_directory_iterator end;
353
- int count=0;
354
- for (recursive_directory_iterator itr(apk_path); itr != end; ++itr){
355
- const path cp = (*itr);
356
- std::cout<< cp.string() << std::endl;
357
- std::cout<< cp.
358
- count +=1;
359
- }
360
- */
361
-
362
-
363
- /*
364
- // Readaing the files using dir and opendir
365
-
366
- std:: string dirName = argv[1];
367
- DIR *dir;
368
- dir = opendir(dirName.c_str());
369
- std::string imgName;
370
- struct dirent *ent;
371
- int count = 0;
372
- if (dir != NULL) {
373
- while ((ent = readdir (dir)) != NULL) {
374
- imgName= ent->d_name;
375
- std::string imgPath(dirName + ent->d_name);
376
- std::cout<< "image name:" << imgName.length() << std::endl;
377
- //imgName = imgName.erase(10);
378
- std::cout<< "image name:" << imgName << std::endl;
379
- //Img = cv::imread(imgPath);
380
- count +=1 ;
381
- }
382
- closedir (dir);
383
- } else {
384
- std::cout<<"not present"<<std::endl;
385
- }
386
-
387
- std::cout<< "Number of fils:" << count << std::endl;
388
- */
0 commit comments