Skip to content

Commit 76b620b

Browse files
committed
removing some comments
1 parent 455913a commit 76b620b

File tree

1 file changed

+0
-44
lines changed

1 file changed

+0
-44
lines changed

pix2image.cpp

-44
Original file line numberDiff line numberDiff line change
@@ -196,10 +196,8 @@ namespace POLPro
196196
}
197197
// Convert to uint16
198198

199-
//BOOST_LOG_TRIVIAL(debug) << "The min and maximum of the converted image : \n " ;
200199
for (int i = 0; i < img.size(); ++i){
201200
img[i].convertTo(img[i], CV_16U);
202-
// BOOST_LOG_TRIVIAL(debug) << minmax(img[i], "Img" + std::to_string(i));
203201
}
204202

205203
}
@@ -231,7 +229,6 @@ namespace POLPro
231229
// we need to shift the image next to each other properly
232230
int offset_col = i % 2;
233231
int offset_row = i / 2;
234-
//BOOST_LOG_TRIVIAL(debug) << minmax(img[i], "origin"+ std::to_string(i));
235232

236233
img[i].copyTo(output_img(
237234
cv::Rect(img_size.width * offset_col,
@@ -345,44 +342,3 @@ int main(int argc, char *argv[]) {
345342

346343

347344

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

Comments
 (0)