Skip to content
Snippets Groups Projects
Commit c65b6cda authored by Julien Michel's avatar Julien Michel
Browse files

TEST: Sensor model test will perform deburst if possible

parent fe2c90a7
No related branches found
No related tags found
No related merge requests found
......@@ -88,10 +88,27 @@ int main(int argc, char * argv[])
sensor->print(std::clog);
}
const bool validate = inverse == inv
bool validate = inverse == inv
? sensor->autovalidateInverseModelFromGCPs()
: sensor->autovalidateForwardModelFromGCPs()
;
std::vector<std::pair<unsigned long, unsigned long>> deburstLines;
std::cout<<"Trying to deburst data ..."<<std::endl;
bool deburstOk = sensor->deburst(deburstLines);
std::cout<<"Deburst succeed: "<<(deburstOk?"yes":"no")<<std::endl;
if(deburstOk)
{
std::cout<<"Validation with deburst model"<<std::endl;
validate = validate && (inverse == inv
? sensor->autovalidateInverseModelFromGCPs()
: sensor->autovalidateForwardModelFromGCPs());
}
std::cout << "Validate: " << validate << "\n";
return validate ? EXIT_SUCCESS : EXIT_FAILURE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment