degate  0.1.2
Namespaces | Functions
ImageManipulation.h File Reference
#include <BoundingBox.h>
#include <Image.h>
#include <FilterKernel.h>
#include <Statistics.h>
#include <ImageStatistics.h>
#include <boost/format.hpp>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  degate
 

The namespace 'degate' is the namespace for everything that belongs to libdegate.


Functions

template<typename ImageType >
void degate::flip_left_right (std::shared_ptr< ImageType > img)
 Flip image in place from left to right.
template<typename ImageType >
void degate::flip_up_down (std::shared_ptr< ImageType > img)
 Flip image in place from top to down.
template<typename ImageType >
void degate::flip_both (std::shared_ptr< ImageType > img)
 Flip image in place from top to down and from left to right.
double degate::rgba_to_hue (rgba_pixel_t p)
 Convert an RGBA pixel to a hue value.
double degate::rgba_to_saturation (rgba_pixel_t p)
 Convert an RGBA pixel to a saturation value.
double degate::rgba_to_lightness (rgba_pixel_t p)
 Convert an RGBA pixel to a lightness value.
template<typename PixelTypeDst , typename PixelTypeSrc >
PixelTypeDst degate::convert_pixel (PixelTypeSrc p)
 Convert a pixel from a source type to a destination type.
template<>
gs_byte_pixel_t degate::convert_pixel< gs_byte_pixel_t, rgba_pixel_t > (rgba_pixel_t p)
 Convert pixel value from from rgba -> byte.
template<>
gs_double_pixel_t degate::convert_pixel< gs_double_pixel_t, rgba_pixel_t > (rgba_pixel_t p)
 Convert pixel value from from rgba -> double.
template<>
rgba_pixel_t degate::convert_pixel< rgba_pixel_t, gs_byte_pixel_t > (gs_byte_pixel_t p)
 Convert pixel value from from byte -> rgba.
template<>
rgba_pixel_t degate::convert_pixel< rgba_pixel_t, gs_double_pixel_t > (gs_double_pixel_t p)
 Convert pixel value from from double -> rgba.
template<typename PixelTypeDst , typename ImageTypeSrc >
PixelTypeDst degate::get_pixel_as (typename std::shared_ptr< ImageTypeSrc > img, unsigned int x, unsigned int y)
template<typename PixelTypeSrc , typename ImageTypeDst >
void degate::set_pixel_as (typename std::shared_ptr< ImageTypeDst > img, unsigned int x, unsigned int y, PixelTypeSrc p)
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::copy_image (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src)
 Copy an image.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::extract_partial_image (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, unsigned int min_x, unsigned int max_x, unsigned int min_y, unsigned int max_y)
 Extract a partial image from src with the region defined by the parameters into a destination image dst.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::extract_partial_image (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, BoundingBox const &bounding_box)
 Extract a partial image.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::convert_to_greyscale (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src)
 Convert an image to greyscale.
template<typename ImageType >
void degate::convert_to_greyscale (std::shared_ptr< ImageType > img)
 In place conversion to a greyscale image.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::scale_down_by_2 (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src)
 Scale a source image down by factor 2.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::scale_down_by_power_of_2 (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src)
 Scale a source image down by factor 2.
template<typename ImageType >
void degate::clear_image (std::shared_ptr< ImageType > img)
 Clear an image.
template<typename ImageType >
std::shared_ptr< ImageType > degate::load_degate_image (unsigned int width, unsigned int height, std::string const &path)
 Helper function to load existing images in a degate image format.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::normalize (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, double lower_bound=0, double upper_bound=1)
 Normalize a single channel image.
template<typename ImageType >
void degate::normalize (std::shared_ptr< ImageType > img, double lower_bound=0, double upper_bound=1)
 Normalize a single channel image in place.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::thresholding_image (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, double threshold)
 Thresholding a single channel image.
template<typename ImageTypeDst , typename ImageTypeSrc >
void degate::convolve (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, FilterKernel_shptr kernel)
 Convolve a single channel source image with a filter kernel and write it into a destination image.
template<typename ImageTypeDst , typename ImageTypeSrc , typename FunctionPolicy >
void degate::filter_image (std::shared_ptr< ImageTypeDst > dst, std::shared_ptr< ImageTypeSrc > src, unsigned int kernel_width=3, unsigned int threshold=3)
 Filter an (RBGA) image.