psycho-compare.C File Reference

#include "Component/ModelManager.H"
#include "Component/ComponentOpts.H"
#include "Component/EventLog.H"
#include "Image/Image.H"
#include "Image/CutPaste.H"
#include "Image/DrawOps.H"
#include "Psycho/PsychoDisplay.H"
#include "Psycho/EyeTrackerConfigurator.H"
#include "Psycho/EyeTracker.H"
#include "Psycho/PsychoOpts.H"
#include "GUI/GUIOpts.H"
#include "Raster/Raster.H"
#include "Util/Types.H"
#include "Util/StringUtil.H"
#include "Util/MathFunctions.H"
#include <fstream>
Include dependency graph for psycho-compare.C:

Go to the source code of this file.

Functions

static int submain (const int argc, char **argv)
 Compare two images along a number of criteria.
int main (const int argc, char **argv)

Detailed Description

Compare two still images

Definition in file psycho-compare.C.


Function Documentation

static int submain ( const int  argc,
char **  argv 
) [static]

Compare two images along a number of criteria.

This shows two images and asks the user to emit a judgement along a number of criteria. The two images are randomly presented on the left/right of fixation. After 5 seconds, criteria questions are displayed at the bottom of the screen. Input file format is:

<num criteria>=""> <textual description of criterion 1> ... <textual description="" of="" criterion="" n>=""> <image filename 1> <image filename 2> ... <image filename 1> <image filename 2>

EXAMPLE:

3 Which image is more beautiful? Which image contains more animals? Which image is more geeky? image001.png image002.png image003.png image004.png image005.png image006.png

Definition at line 83 of file psycho-compare.C.

References ModelComponent::addSubComponent(), Image< T >::clear(), convertFromString(), drawFilledRect(), ModelComponent::exportOptions(), SimpleFont::FIXED(), ModelManager::getExtraArg(), image, initRandomNumbers(), inplaceEmbed(), MC_RECURSE, MYLOGVERB, NO_INIT, ModelManager::parseCommandLine(), randomUpToNotIncluding(), randShuffle(), Raster::ReadRGB(), ModelManager::setOptionValString(), split(), ModelComponent::start(), ModelComponent::stop(), and writeText().

Generated on Sun May 8 08:42:37 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3