5 #include <visp3/ustk_confidence_map/usScanlineConfidence2D.h>
6 #include <visp3/ustk_core/usImageIo.h>
7 #include <visp3/ustk_core/usImagePreScan2D.h>
9 int main(
int argc,
const char *argv[])
14 for (
int i = 0; i < argc; i++) {
15 if (std::string(argv[i]) ==
"--input")
16 filename = std::string(argv[i + 1]);
17 else if (std::string(argv[i]) ==
"--help") {
18 std::cout <<
"Usage: " << argv[0] <<
" [--input <filename>] [--help]" << std::endl;
24 if (filename.empty()) {
26 if (!env_ipath.empty())
27 filename = env_ipath +
"/pre-scan/2D_xml/prescan2d.xml";
29 std::cout <<
"You should set USTK_DATASET_PATH environment var to access to ustk dataset" << std::endl;
38 confidenceProcess.
run(confidence, image);
40 std::string outFileName = std::string(
"confidence.xml");
41 std::cout <<
" Outuput " << outFileName <<
" written" << std::endl;
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()