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
|
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:
- (n*num_maps by m) matrix, where n=image_width*image_height is an image
- images are in RGBA interleaved format(num_maps=4), A channel is ignored.
- images can also be in grayscale (num_maps=1).
- 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
-
dst | target matrix; when interleaved_channels is 4, this should be a matrix which is 3 times as high as src |
src | source matrix; when interleaved_channels is 4, this should have dim=4 set |
interleaved_channels | can 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
-
depth | level of the pyramid |
channel | channel (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_h | height of one image at base |
img_w | width of one image at base |
depth | depth of the pyramid (0..depth-1) |
dim | the pixel dimension (can be 1 or 3) |
Definition at line 172 of file image_pyramid.hpp.