#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 <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 FACTOR, Image< byte > &targets, bool do_target, Image< PixRGB< byte > > &randomGrid, const Image< PixRGB< byte > > &randomNum, int ¢er_x, int ¢er_y) |
int | main (const int argc, const char **argv) |
Creates a randomized search array from image patches of a single target and many distractors occuring in randomized luminance
Definition in file searcharray2d_lumin.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 69 of file searcharray2d_lumin.C.
References ASSERT, Image< T >::beginw(), Image< T >::endw(), FACTOR, 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.