#include <iostream>
#include <visp3/ustk_confidence_map/usScanlineConfidence2D.h>
#include <visp3/ustk_core/usImageIo.h>
#include <visp3/ustk_core/usImagePreScan2D.h>
int main(int argc, const char *argv[])
{
std::string filename;
for (int i = 0; i < argc; i++) {
if (std::string(argv[i]) == "--input")
filename = std::string(argv[i + 1]);
else if (std::string(argv[i]) == "--help") {
std::cout << "Usage: " << argv[0] << " [--input <filename>] [--help]" << std::endl;
return 0;
}
}
if (filename.empty()) {
if (!env_ipath.empty())
filename = env_ipath + "/pre-scan/2D_xml/prescan2d.xml";
else {
std::cout << "You should set USTK_DATASET_PATH environment var to access to ustk dataset" << std::endl;
return 0;
}
}
confidenceProcess.
run(confidence, image);
std::string outFileName = std::string("confidence.xml");
std::cout << " Outuput " << outFileName << " written" << std::endl;
return 0;
}
static void read(usImageRF2D< short int > &imageRf2D, const std::string &headerFileName)
static void write(const usImageRF2D< short > &rfImage, const std::string &headerFileName, const std::string &imageExtension2D)
Process a pre-scan image to determine the confidence map.
void run(usImagePreScan2D< unsigned char > &preScanConfidence, const usImagePreScan2D< unsigned char > &preScanImage)
VISP_EXPORT std::string getDataSetPath()