Basic Image AlgorithmS Library  2.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Static Public Member Functions | List of all members
BIAS::ImageDistribution Class Reference

Maps a set of input images to a given output image so that the space in the output image area is optimally used. More...

#include <Base/ImageUtils/ImageDistribution.hh>

Static Public Member Functions

static void MapImagesToFixedSize (std::vector< Image< unsigned char > > &inputImages, Image< unsigned char > &outputImage, std::vector< Vector2< unsigned int > > &imagePositionsPixel)
 Maps the given images to the output image, which is of a fixed size. More...
 
static void MapImagesToFixedSize (const std::vector< Image< unsigned char > * > &inputImages, Image< unsigned char > &outputImage, std::vector< Vector2< unsigned int > > &imagePositionsPixel)
 
static void MapImagesToSquare (std::vector< Image< unsigned char > > &inputImages, Image< unsigned char > &outputImage, std::vector< Vector2< unsigned int > > &imagePositionsPixel)
 Maps the given images to a square without scaling the images. More...
 
static void MapImagesToSquare (const std::vector< Image< unsigned char > * > &inputImage, Image< unsigned char > &outputImage, std::vector< Vector2< unsigned int > > &imagePositionsPixel)
 

Detailed Description

Maps a set of input images to a given output image so that the space in the output image area is optimally used.

The images are aligned in a grid so that minimal space is wasted. The intended use of this class is texture fusion.

Author
rwulff
Date
03/2011

Definition at line 50 of file ImageDistribution.hh.

Member Function Documentation

void ImageDistribution::MapImagesToFixedSize ( std::vector< Image< unsigned char > > &  inputImages,
Image< unsigned char > &  outputImage,
std::vector< Vector2< unsigned int > > &  imagePositionsPixel 
)
static

Maps the given images to the output image, which is of a fixed size.

Scaling is performed by nearest neighbour backward mapping.

Warning
Assumes that all input images have the same size and channel count. This is not checked!!!
Parameters
[in]inputImagesthe input images. must all have the same size and channel count (not checked!)
[out]outputImagethe destination image. must have (width, height > 0). channel count must be same as input images.
[out]imagePositionsPixelupper left corner of each input image in the output image

Definition at line 30 of file ImageDistribution.cpp.

void ImageDistribution::MapImagesToFixedSize ( const std::vector< Image< unsigned char > * > &  inputImages,
Image< unsigned char > &  outputImage,
std::vector< Vector2< unsigned int > > &  imagePositionsPixel 
)
static
void ImageDistribution::MapImagesToSquare ( std::vector< Image< unsigned char > > &  inputImages,
Image< unsigned char > &  outputImage,
std::vector< Vector2< unsigned int > > &  imagePositionsPixel 
)
static

Maps the given images to a square without scaling the images.

The images are distributed to utilize a square area optimally. The output image will be sized so that it can hold all images.

Warning
Assumes that all input images have the same size and channel count. This is not checked!!!
Parameters
[in]inputImagesthe input images. must all have the same size and channel count (not checked!)
[out]outputImagethe destination image. size is ignored. channel count must be same as input images
[out]imagePositionsPixelupper left corner of each input image in the output image

Definition at line 146 of file ImageDistribution.cpp.

void ImageDistribution::MapImagesToSquare ( const std::vector< Image< unsigned char > * > &  inputImage,
Image< unsigned char > &  outputImage,
std::vector< Vector2< unsigned int > > &  imagePositionsPixel 
)
static

The documentation for this class was generated from the following files: