Basic Image AlgorithmS Library
2.8.0
|
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) |
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.
Definition at line 50 of file ImageDistribution.hh.
|
static |
Maps the given images to the output image, which is of a fixed size.
Scaling is performed by nearest neighbour backward mapping.
[in] | inputImages | the input images. must all have the same size and channel count (not checked!) |
[out] | outputImage | the destination image. must have (width, height > 0). channel count must be same as input images. |
[out] | imagePositionsPixel | upper left corner of each input image in the output image |
Definition at line 30 of file ImageDistribution.cpp.
|
static |
Definition at line 47 of file ImageDistribution.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::ImageBase::GetHeight(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetWidth(), and BIAS::ImageBase::SetZero().
|
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.
[in] | inputImages | the input images. must all have the same size and channel count (not checked!) |
[out] | outputImage | the destination image. size is ignored. channel count must be same as input images |
[out] | imagePositionsPixel | upper left corner of each input image in the output image |
Definition at line 146 of file ImageDistribution.cpp.
|
static |
Definition at line 161 of file ImageDistribution.cpp.
References BIAS::ImageBase::GetChannelCount(), BIAS::Image< StorageType >::GetImageData(), BIAS::ImageBase::GetWidth(), BIAS::Image< StorageType >::Init(), and BIAS::ImageBase::SetZero().