Go to the documentation of this file.
20 #include <mrpt/examples_config.h>
22 MRPT_EXAMPLES_BASE_DIRECTORY +
string(
"img_gauss_filtering_example/"));
40 printf(
"Smoothed image in %.03fms\n", 1000 * tictac.
Tac());
45 win1.showImage(inImg);
46 win2.showImage(outImg);
58 catch (
const std::exception& e)
60 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
65 printf(
"Another exception!!");
A high-performance stopwatch, with typical resolution of nanoseconds.
double Tac() noexcept
Stops the stopwatch.
void filterGaussian(CImage &out_img, int W=3, int H=3, double sigma=1.0) const
Filter the image with a Gaussian filter with a window size WxH, replacing "this" image by the filtere...
void Tic() noexcept
Starts the stopwatch.
This class creates a window as a graphical user interface (GUI) for displaying images to the user.
Classes for creating GUI windows for 2D and 3D visualization.
A class for storing images as grayscale or RGB bitmaps.
bool loadFromFile(const std::string &fileName, int isColor=-1)
Load image from a file, whose format is determined from the extension (internally uses OpenCV).
void pause(const std::string &msg=std::string("Press any key to continue...")) noexcept
Shows the message "Press any key to continue" (or other custom message) to the current standard outpu...
Page generated by Doxygen 1.8.17 for MRPT 2.0.4 at Sat Jun 27 14:00:59 UTC 2020 | |