stllcv_0_5_1.zip
stllcv_0_5_1
Doxyfile
include
stllcv
cvvbasicimage.hxx
iplvbasicimage.hxx
iplvbasicimageex.hxx
iplvbasicimageoperation.hxx
iplvfftw.hxx
iplvhistogram.hxx
iplvhistogramoperation.hxx
iplvimageoperation.hxx
iplvinspectimage.hxx
ublascvmatrix.hxx
vfftw.hxx
vimageoperation.hxx
LICENSE
src
example
lena.jpg
lena2.jpg
Release
lena.jpg
Imageregistration
lena.jpg
lena2.jpg
lenaSub.jpg
out.jpg
phase3.jpg
Release
stllcv_0_7_2.zip
stllcv_0_7_2
include
stllcv
cvvbasicimage.hxx
functor.hxx
iplvbasicimage.hxx
iplvbasicimageex.hxx
iplvbasicimageoperation.hxx
iplvfftw.hxx
iplvhistogram.hxx
iplvhistogramoperation.hxx
iplvimageoperation.hxx
iplvinspectimage.hxx
matrixoperation.hxx
randommatrix.hxx
ublascvmatrix.hxx
vfftw.hxx
vimageoperation.hxx
src
example
basicimage.vcproj.LETSNOTE.niitsuma.user
basicimage.vcproj.REX.niitsuma.user
CvMatWrap.vcproj.LETSNOTE.niitsuma.user
CvMatWrap.vcproj.REX.niitsuma.user
histogram.vcproj.LETSNOTE.niitsuma.user
histogram.vcproj.REX.niitsuma.user
lena.jpg
lena2.jpg
matrix.vcproj.LETSNOTE.niitsuma.user
matrix.vcproj.REX.niitsuma.user
test.jpg
Imageregistration
lena.jpg
lena2.jpg
lenaSub.jpg
PhaseOnlyCorrelation.vcproj.LETSNOTE.niitsuma.user
PhaseOnlyCorrelation.vcproj.REX.niitsuma.user
stllcv_0_7_5.zip
stllcv_0_7_5
include
stllcv
cvvbasicimage.hxx
functor.hxx
iplvbasicimage.hxx
iplvbasicimageex.hxx
iplvbasicimageoperation.hxx
iplvfftw.hxx
iplvhistogram.hxx
iplvhistogramoperation.hxx
iplvimageoperation.hxx
iplvinspectimage.hxx
matrixoperation.hxx
randommatrix.hxx
ublascvmatrix.hxx
vfftw.hxx
vimageoperation.hxx
src
example
lena.jpg
lena2.jpg
test.jpg
Imageregistration
lena.jpg
lena2.jpg
lenaSub.jpg
stllcv_0_7_7.zip
stllcv_0_7_7
include
stllcv
cvvbasicimage.hxx
functor.hxx
iplvbasicimage.hxx
iplvbasicimageex.hxx
iplvbasicimageoperation.hxx
iplvfftw.hxx
iplvhistogram.hxx
iplvhistogramoperation.hxx
iplvimageoperation.hxx
iplvinspectimage.hxx
matrixoperation.hxx
randommatrix.hxx
ublascvmatrix.hxx
vfftw.hxx
vimageoperation.hxx
src
example
lena.jpg
lena2.jpg
out.jpg
test.jpg
Imageregistration
lena.jpg
lena2.jpg
lenaSub.jpg
|
#ifdef _CH_
#define WIN32
#error "The file needs cvaux, which is not wrapped yet. Sorry"
#endif
#include "vigra/bordertreatment.hxx"
#include "vigra/stdconvolution.hxx"
#include "vigra/recursiveconvolution.hxx"
#include "vigra/multi_array.hxx"
#include "vigra/imageiterator.hxx"
#include "vigra/stdimage.hxx"
#include "vigra/convolution.hxx"
//#include "vigra/fftw.hxx"
#include "vigra/fftw3.hxx"
#include "vigra/basicimage.hxx"
#include "vigra/inspectimage.hxx"
#include "vigra/transformimage.hxx"
#include "stllcv/iplvfftw.hxx"
#include "stllcv/vimageoperation.hxx"
#include "stllcv/iplvbasicimageoperation.hxx"
#include "stllcv/iplvbasicimage.hxx"
//#include "iplvbasicimageex.hxx"
//#include "stllcv/iplvhistogram.hxx"
//iplvhistogram.hxx
#include "stllcv/iplvinspectimage.hxx"
#include "vigra/localminmax.hxx"
//#include <ipl.h>
#ifndef _EiC
#include "cv.h"
#include "highgui.h"
#include <stdio.h>
#include <conio.h>
#include <stdlib.h>
#include <string.h>
#include <assert.h>
#include <math.h>
#include <float.h>
#include <limits.h>
#include <time.h>
#include <ctype.h>
#endif
#ifdef _EiC
#define WIN32
#endif
//#include "..\cookroom\macros.inc"
//#include "..\cookroom\cookroom.h"
//#include "..\cookroom\cookdraw.h"
//#include <ipl.h>
//#include "cv.h"
static const bool is_modal = true; /// ipDraw parameter
//static char msg[256];
//static __int64 start, stop;
#define DebugFileRead 1
#define DebugShowImage 1
#define SelfResize 0
//#define PhaseOnly 0
#define SMOOTHBorder 1
#define SMOOTHPhase 1
#define SMOOTHPhaseAverage 0
//#define PEXFFT char
//#define PEXFFT float
#define PEXFFT float
//#define PEXORGIMG unsigned short
//#define PEXORGIMG int
//#define PEXORGIMG float
#define PEXORGIMG unsigned char
//#define PEXORGIMG double
//#define PEXORGIMG char
//#define TileLen 100
#define TileLen 50
#if !DebugFileRead
#define Filename argv[1]
#define Filename2 argv[2]
#define OutImageName argv[3]
#endif
using namespace stllcv;
int main( int argc, char** argv )
{
const char* input_name;
input_name =0;
#if DebugFileRead
const char* Filename = input_name ? input_name : (char*)"lena.jpg";
const char* Filename2 = input_name ? input_name : (char*)"lena2.jpg";
#endif
CiplvBasicImage<PEXORGIMG> image1org(Filename);
CiplvBasicImage<PEXORGIMG> image1(Filename);
CiplvBasicImage<PEXORGIMG> image2org(Filename2);
CiplvBasicImage<PEXORGIMG> image2(Filename2);
int width1=image1org.width();
int height1=image1org.height();
CiplvBasicImage<PEXORGIMG> imageCorrelation(width1,height1);
int xmax, ymax;
#if DebugShowImage
bool is_modal = true; /// ipDraw parameter
char winName[]="srcImg";
cvNamedWindow( winName, 1 );
showIplvBasicImag<PEXORGIMG>(&image1,winName);
showIplvBasicImag<PEXORGIMG>(&image2,winName);
#endif
phaseOnlyCorrelation(image1, image2,imageCorrelation , xmax, ymax , true, 6.0 );
std::cout << "xmax " << xmax << " ymax " << ymax << std::endl;
CiplvBasicImage<PEXORGIMG> image3(width1,height1);
iplvTileImageNoCycle<PEXORGIMG>(&image1org,&image2org,
&image3,
TileLen,xmax,ymax
);
#if DebugShowImage
showIplvBasicImag<PEXORGIMG>(&image1,winName);
showIplvBasicImag<PEXORGIMG>(&image2,winName);
showIplvBasicImag<PEXORGIMG>(&imageCorrelation,winName);
showIplvBasicImag<PEXORGIMG>(&image3,winName);
cvDestroyWindow("srcImg");
#endif
}
|
By viewing downloads associated with this article you agree to the Terms of use and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.
This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.
A list of licenses authors might use can be found here