Images grabbing example with the vpDiskGrabber class.
#include <visp3/core/vpConfig.h>
#include <visp3/core/vpImage.h>
#include <visp3/io/vpDiskGrabber.h>
int main()
{
#ifdef ENABLE_VISP_NAMESPACE
#endif
try {
for (int cpt = 0; cpt < 100; cpt++) {
}
return EXIT_SUCCESS;
}
std::cout << "Catch an exception: " << e << std::endl;
return EXIT_FAILURE;
}
}
Class to grab (ie. read) images from the disk.
void setDirectory(const std::string &dir)
void setExtension(const std::string &ext)
void open(vpImage< unsigned char > &I)
void setImageNumber(long number)
void setNumberOfZero(unsigned int noz)
void setBaseName(const std::string &name)
void acquire(vpImage< unsigned char > &I)
error that can be emitted by ViSP classes.