GJK_nD
 All Classes Files Functions Typedefs Friends Pages
Functions
utils.hpp File Reference

Contains usefull helper functions to work with PNG images. More...

#include <sstream>
#include "png++/png.hpp"

Go to the source code of this file.

Functions

template<typename T >
Utils::square (T value)
 A helper function to compute the square of a value. More...
 
template<typename T >
int Utils::sign (T value)
 A helper function to get the sign of a number. More...
 
template<typename T >
std::string Utils::toString (T value)
 A conversion function from any type T that have an << operator to std::string. More...
 
void Utils::otsuThresholding (png::image< png::gray_pixel > &image)
 Binarization of the image by Otsu's method based on maximization of inter-class variance. More...
 
void Utils::binaryImageToNegative (png::image< png::gray_pixel > &image)
 Transform the binary image into its negative counterpart. More...
 
template<typename pixel_type >
void Utils::fillImage (png::image< pixel_type > &image, const pixel_type &pixel)
 Fill a PNG image with a given pixel. More...
 

Detailed Description

Contains usefull helper functions to work with PNG images.