darrenlafreniere / lafarren-image-completer

Implementation of the research titled: "Image Completion Using Efficient Belief Propagation via Priority Scheduling and Dynamic Pruning"
http://www.lafarren.com/image-completer/
GNU General Public License v3.0
32 stars 18 forks source link

-ss flag output broken #30

Open daviddoria opened 13 years ago

daviddoria commented 13 years ago

Strange characters Image completer settings low resolution passes:[strange characters] 0 number of iterations: [strange characters] 6 lattice gap width: 13 lattice gap height: 9 post-prune patches min: 3 post-prune patches max: 12 Compositor settings patch type:  (followed by 10's of blank lines)

They go away when copied into here??

daviddoria commented 13 years ago

Before the first Member is created in SettingsText::Print, I tried this:

std::vector<Member> completerMembers;
std::cout << DESC(lowResolutionPassesMax) << std::endl;
std::cout << VAL_S(lowResolutionPassesMaxString.c_str()) << std::endl;
completerMembers.push_back(Member(DESC(lowResolutionPassesMax), VAL_S(lowResolutionPassesMaxString.c_str())));

The output is: low resolution passes 0

My debugger shows the value of the 'value' of the Member to be: ' ' <repeats 16 times>, "0"

I guess something is going wrong in the parsing where a bunch of empty characters are being kept?