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);
59 catch (std::exception& e)
61 std::cout <<
"MRPT exception caught: " << e.what() << std::endl;
66 printf(
"Another exception!!");
A high-performance stopwatch, with typical resolution of nanoseconds.
double Tac() noexcept
Stops the stopwatch.
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.
void filterGaussian(CImage &out_img, int W=3, int H=3) const
Filter the image with a Gaussian filter with a window size WxH, replacing "this" image by the filtere...
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...
This namespace provides a OS-independent interface to many useful functions: filenames manipulation,...
Page generated by Doxygen 1.8.17 for MRPT 1.9.9 Git: ad3a9d8ae Tue May 1 23:10:22 2018 -0700 at miƩ 12 jul 2023 10:03:34 CEST | |