CUV  0.9.201304091348
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Files | Classes | Functions
Operations on Images

Write a moved version of each image (a column in src) to dst. More...

Files

file  image_pyramid.hpp
 classes/methods dealing with the construction of image pyramids

Classes

class  cuv::image_pyramid< __matrix_type >
 image pyramid decreasing in size logarithmically. More...

Functions

template<class T , class S , class I >
void cuv::gaussian_pyramid_downsample (tensor< T, S, row_major > &dst, const cuda_array< T, S, I > &src, const unsigned int interleaved_channels)
 sample down an image by a factor of 2
template<class T , class S , class I >
void cuv::gaussian_pyramid_upsample (tensor< T, S, row_major > &dst, const cuda_array< T, S, I > &src)
template<class TDest , class T , class S , class I >
void cuv::get_pixel_classes (tensor< TDest, S, row_major > &dst, const cuda_array< T, S, I > &src, float scale_fact)
template<class T , class S , class I >
void cuv::gaussian (tensor< T, S, row_major > &dst, const cuda_array< T, S, I > &src)
matrix_type * cuv::image_pyramid< __matrix_type >::get (int depth, int channel)
 Get a view on a channel in the pyramid.
matrix_type * cuv::image_pyramid< __matrix_type >::get_all_channels (int depth)
 cuv::image_pyramid< __matrix_type >::image_pyramid (int img_h, int img_w, int depth, int dim)
 construct an image pyramid.

Detailed Description

Write a moved version of each image (a column in src) to dst.

Assumptions:

Todo:
previously non-existent pixels at the border are filled... how?

Function Documentation

template<class T , class S , class I >
void cuv::gaussian_pyramid_downsample ( tensor< T, S, row_major > &  dst,
const cuda_array< T, S, I > &  src,
const unsigned int  interleaved_channels 
)

sample down an image by a factor of 2

Parameters
dsttarget matrix; when interleaved_channels is 4, this should be a matrix which is 3 times as high as src
srcsource matrix; when interleaved_channels is 4, this should have dim=4 set
interleaved_channelscan be 1 (grayscale) or 4 (RGBA)
template<class __matrix_type >
image_pyramid< __matrix_type >::matrix_type * cuv::image_pyramid< __matrix_type >::get ( int  depth,
int  channel 
)

Get a view on a channel in the pyramid.

Parameters
depthlevel of the pyramid
channelchannel (red, for example)

Definition at line 153 of file image_pyramid.hpp.

template<class __matrix_type >
cuv::image_pyramid< __matrix_type >::image_pyramid ( int  img_h,
int  img_w,
int  depth,
int  dim 
)

construct an image pyramid.

Parameters
img_hheight of one image at base
img_wwidth of one image at base
depthdepth of the pyramid (0..depth-1)
dimthe pixel dimension (can be 1 or 3)

Definition at line 172 of file image_pyramid.hpp.