
#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>
Go to the source code of this file.
| Defines | |
| #define | FACTOR 1.5 | 
| 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) | 
create a randomized search array from image patches
Definition in file searcharray2.C.
| #define FACTOR 1.5 | 
Spacing between elements as a factor of their size:
Definition at line 51 of file searcharray2.C.
| 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 61 of file searcharray2.C.
References ASSERT, FACTOR, Image< T >::getHeight(), Image< T >::getWidth(), image, initRandomNumbers(), randomDouble(), randomUpToNotIncluding(), RASFMT_PNM, Raster::ReadRGB(), Raster::WriteGray(), Raster::WriteRGB(), and ZEROS.
 1.6.3
 1.6.3