
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) |
|
|
Spacing between elements as a factor of their size:.
Definition at line 18 of file searcharray.C. Referenced by image_patch(), and main(). |
|
||||||||||||
|
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. |
1.4.4