X-Boost  2.3.8
Classes | Functions
ImageUtils.h File Reference

method to process image More...

#include "Image.h"
#include "Types.h"
#include "IntegralImage.h"

Go to the source code of this file.

Classes

class  ImageResampler
 

Functions

void Convert (ImageHandle &out, const ImageHandle &in)
 convert color to greyscale and viceversa
 
void Resample (ImageHandle &out, const ImageHandle &in, const rect &area)
 Crop and Resample an Image using IntegralImage algorithm.
 
void BilinearResample (ImageHandle &out, const ImageHandle &in, const rect &area)
 Crop and Resample an Image using Bilinear Interpolation algorithm.
 
void DrawRect (ImageHandle &out, rect r, unsigned int color)
 Draw a rectangle over an image.
 
void DrawBox (ImageHandle &out, rect r, unsigned int color)
 Draw a Box over an image.
 
void BlendBox (ImageHandle &out, rect r, unsigned int color, float factor)
 Draw a Transparent Box over an image.
 
void Downsample2X (ImageHandle &out, const ImageHandle &in)
 Downsample (a factor of 2) the whole image.
 
void Downsample1_5X (ImageHandle &out, const ImageHandle &in)
 Downsample a factor of 1.5 the whole image.
 
void Downsample2X (ImageHandle &out, const ImageHandle &in, const rect &area)
 Crop and Downsample.
 

Detailed Description

method to process image