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

searcharray2d.C File Reference


Detailed Description

create a randomized search array from image patches of a single target and the rest for distractors

Definition in file searcharray2d.C.

#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Component/ModelManager.H"
#include "Raster/Raster.H"
#include "Util/Assert.H"
#include "Util/MathFunctions.H"
#include "Util/StringConversions.H"
#include "Util/log.H"
#include <cstdlib>
#include <ctime>
#include <math.h>
#include <unistd.h>
#include <vector>

Include dependency graph for searcharray2d.C:

Go to the source code of this file.

Functions

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


Function Documentation

int main const int  argc,
const char **  argv
 

This program generates a randomized search array (and associated target mask) from several image patches (1 for target and the rest for distractors).

Definition at line 71 of file searcharray2d.C.

References ASSERT, Image< T >::beginw(), c, cols, Image< T >::endw(), ModelManager::getExtraArg(), ModelManager::getExtraArgAs(), Image< T >::getHeight(), Image< T >::getWidth(), i, image, image_patch(), initRandomNumbers(), iptr, LINFO, MYLOGVERB, ModelManager::numExtraArgs(), output(), ModelManager::parseCommandLine(), randomDouble(), randShuffle(), RASFMT_PNM, Raster::ReadRGB(), rows, start, ModelComponent::start(), ModelComponent::stop(), lobot::stop(), target, toStr(), 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