#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 <cstdio>
#include <math.h>
#include <unistd.h>
#include <vector>
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) |
create a randomized search array from image patches of a single target and the rest for distractors
Definition in file searcharray2d.C.
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 70 of file searcharray2d.C.
References ASSERT, Image< T >::beginw(), Image< T >::endw(), ModelManager::getExtraArg(), ModelManager::getExtraArgAs(), Image< T >::getHeight(), Image< T >::getWidth(), image, initRandomNumbers(), MYLOGVERB, ModelManager::numExtraArgs(), ModelManager::parseCommandLine(), randomDouble(), randShuffle(), RASFMT_PNM, Raster::ReadRGB(), ModelComponent::start(), ModelComponent::stop(), toStr(), Raster::WriteGray(), Raster::WriteRGB(), and ZEROS.