auxiliary
 All Classes Namespaces Files Functions Typedefs Enumerations Enumerator Macros
Namespaces | Macros | Enumerations | Functions
pyramid.hpp File Reference

Functions for gaussian image pyramid. More...

#include <armadillo>

Go to the source code of this file.

Namespaces

 auxiliary
 An auxiliary interface functions for armadillo library.
 

Macros

#define castOp(x)   ((x + 128) >> 8)
 

Enumerations

enum  auxiliary::border_type {
  auxiliary::constant, auxiliary::reflect, auxiliary::replicate, auxiliary::warp,
  auxiliary::reflect101, auxiliary::transparent
}
 Various border types, image boundaries are denoted with '|'. More...
 

Functions

arma::uword auxiliary::borderInterpolate (int p, int n, border_type type=reflect101)
 Computes the location of an extrapolated pixel. More...
 
template<typename T1 , typename T2 >
void auxiliary::pyrDown (const T1 &in, T2 &out)
 Blurs an image and downsamples it.
This function performs the downsampling step of the Gaussian pyramid construction.
First, it convolves the source image with the kernel:

\[ \frac{1}{256} \begin{bmatrix} 1 & 4 & 6 & 4 & 1 \\ 4 & 16 & 24 & 16 & 4 \\ 6 & 24 & 36 & 24 & 6 \\ 4 & 16 & 24 & 16 & 4 \\ 1 & 4 & 6 & 4 & 1 \end{bmatrix} \]

Then, it downsamples the image by rejecting even rows and columns. More...

 

Detailed Description

Functions for gaussian image pyramid.

Author
seonh.nosp@m.o.oh.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
Date
2013-07-01
Version
1.0

LICENSE

Copyright (c) 2007-2014, Seonho Oh
All rights reserved. 

Redistribution and use in source and binary forms, with or without  
modification, are permitted provided that the following conditions are  
met: 

    * Redistributions of source code must retain the above copyright  
    notice, this list of conditions and the following disclaimer. 
    * Redistributions in binary form must reproduce the above copyright  
    notice, this list of conditions and the following disclaimer in the  
    documentation and/or other materials provided with the distribution. 
    * Neither the name of the <ORGANIZATION> nor the names of its  
    contributors may be used to endorse or promote products derived from  
    this software without specific prior written permission. 

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS  
IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED  
TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A  
PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER  
OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,  
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,  
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR  
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF  
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING  
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS  
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 

Macro Definition Documentation

#define castOp (   x)    ((x + 128) >> 8)