density.H

Go to the documentation of this file.
00001 /*! @file Landmark/density.H [put description here] */
00002 
00003 // $HeadURL: svn://isvn.usc.edu/software/invt/trunk/saliency/src/Landmark/density.H $
00004 // $Id: density.H 6410 2006-04-01 22:12:24Z rjpeters $
00005 
00006 // find the density plot: treat each object as 1 pt in 2d space
00007 // not considering sigma yet
00008 
00009 #include <stdio.h>
00010 #include <map>
00011 #include <string>
00012 
00013 #include "Image/Image.H"
00014 
00015 
00016 class Object
00017 {
00018 public:
00019 
00020   std::string name;   // name of the object
00021   int tag;       // tag: order in list of objects
00022   double mu1;    // mean of finest scale
00023   double sigma1; // sigma of finest scale
00024 
00025   // constructor
00026   Object(std::string name, int tag, double mu1, double sigma)
00027   {
00028     this->name = name;
00029     this->tag = tag;
00030     this->mu1 = mu1;
00031     this->sigma1 = sigma1;
00032 
00033   }
00034 
00035 };
00036 
00037 //*****************************************************
00038 
00039 Image<float> density(const char* filename, std::map<int, Object*>& list);
Generated on Sun May 8 08:40:58 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3