searcharray.C File Reference

#include "Util/Assert.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Raster/Raster.H"
#include "Util/log.H"
#include <cstdlib>
#include <ctime>
#include <iostream>
#include <unistd.h>
Include dependency graph for searcharray.C:

Go to the source code of this file.

Defines

#define FACTOR   1.2
 Spacing between elements as a factor of their size:

Functions

void image_patch (const Image< PixRGB< byte > > &patch, const int ti, const int tj, Image< PixRGB< byte > > &image, const double alpha, Image< byte > &targets, bool do_target)
int main (const int argc, const char **argv)

Detailed Description

create a randomized search array from two image patches

Definition in file searcharray.C.


Define Documentation

#define FACTOR   1.2

Spacing between elements as a factor of their size:

Definition at line 18 of file searcharray.C.

Referenced by main().


Function Documentation

int main ( const int  argc,
const char **  argv 
)

This program generates a randomized search array (and associated target mask) from two image patches (for target and distractors).

Definition at line 28 of file searcharray.C.

References ASSERT, FACTOR, Image< T >::getHeight(), Image< T >::getWidth(), image, initRandomNumbers(), randomDouble(), RASFMT_PNM, Raster::ReadRGB(), Raster::WriteGray(), Raster::WriteRGB(), and ZEROS.

Generated on Sun May 8 08:42:37 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3