#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.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) |
create a randomized search array from two image patches
Definition in file searcharray.C.
#define FACTOR 1.2 |
Spacing between elements as a factor of their size:
Definition at line 18 of file searcharray.C.
Referenced by main().
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.