Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

searcharray.C File Reference


Detailed Description

create a randomized search array from two image patches

Definition in file searcharray.C.

#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)


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 image_patch(), and 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, Image< T >::beginw(), Image< T >::endw(), FACTOR, Image< T >::getHeight(), Image< T >::getWidth(), i, image, image_patch(), initRandomNumbers(), iptr, LINFO, randomDouble(), RASFMT_PNM, Raster::ReadRGB(), lobot::stop(), w, Raster::WriteGray(), Raster::WriteRGB(), and ZEROS.


Generated on Sun Nov 22 13:43:26 2009 for iLab Neuromorphic Vision Toolkit by  doxygen 1.4.4