亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? condensation.cpp

?? 來自美國著名大學的研究,實現動目標的自動跟蹤算法
?? CPP
?? 第 1 頁 / 共 2 頁
字號:
/********************************************************************************/
/*  Program	   :  condensation.cpp						*/
/*  Version	   :  0.01A							*/
/*  Abstract       :  	*/
/*  Copyright      :  GuanFeng Ye						*/
/*  Creation Date  :  10/30/2005						*/
/*  Revision Date  :  10/30/2005						*/
/*										*/
/********************************************************************************/
#include "condensation.h"

double WINAPI uniform_random( );
double WINAPI gaussian_random( );
double WINAPI evaluate_gaussian(double val, double sigma);

/*********************************************************************************
  Function    : 
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/ProcessModel::ProcessModel()
{
	m_Mean    = ProcessMean;
	m_Scaling = ProcessScaling;
	m_Sigma   = ProcessSigma;
}

/*********************************************************************************
  Function    : first_order_arp
  Description : The process model for a first-order auto-regressive process is:
		x_{t+1} - mean = (x_t - mean)*scaling + sigma*w_t
		where w_t is unit iid Gaussian noise.
  Parameter   : previous (Input) -
  Return      : 
  Call	      :
*********************************************************************************/

double
ProcessModel::first_order_arp(double previous)
{
	return m_Mean +	((previous - m_Mean) * m_Scaling) + m_Sigma * gaussian_random();
}

/*********************************************************************************
  Function    : SceneModel/~SceneModel
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/
SceneModel::SceneModel()
{
	m_Sigma = SceneSigma;
}


/*********************************************************************************
  Function    : PriorModel/~PriorModel
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/
PriorModel::PriorModel()
{
	m_Mean  = PriorMean;
	m_Sigma = PriorSigma;
}


/*********************************************************************************
  Function    : ObservationModel/~ObservationModel
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/
ObservationModel::ObservationModel()
{
	m_Sigma = ObsSigma;
}


/*********************************************************************************
  Function    : DisplayModel/~DisplayModel
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/
DisplayModel::DisplayModel()
{
	m_HistogramWidth = DisplayWidth;
}


/*********************************************************************************
  Function    : 
  Description : 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/
void
MeasData::SetTrueValue(double value)
{
	m_TrueValue = value;
}


/*********************************************************************************
  Function    : obtain_observations
  Description : In a real implementation, this routine would go and actually make
		measurements and store them in the data.meas structure. This
		simulation consists of an `object' moving around obeying a
		first-order auto-regressive process, and being observed with its
		true positions corrupted by Gaussian measurement noise.
		Accordingly, this routine calculates the new simulated true and
		measured position of the object. 
  Parameter   : 
  Return      : 
  Call	      :
*********************************************************************************/

void
MeasData::obtain_observations(GlobalData *global)
{
	m_TrueValue = global->scene.process.first_order_arp(m_TrueValue);
	m_Observed  = m_TrueValue + global->scene.sigma() * gaussian_random();
}

/*********************************************************************************
  Function    : evaluate_observation_density
  Description : This routine evaluates the observation density
		p(z_t|x_t = new_positions[new_sample])
		The observation model in this implementation is a simple mixture of
		Gaussians, where each simulated object is observed as a 1d position
		and measurement noise is represented as Gaussian. For a
		visual-tracking application, this routine would go and evaluate the
		likelihood that the object is present in the image at the position
		encoded by new_positions[new_sample].
  Parameter   : new_sample (Input) -
  Return      : 
  Call	      :
*********************************************************************************/

double
IterationData::evaluate_observation_density(int new_sample, double sigma)
{
	return evaluate_gaussian(new_positions[new_sample] - meas.observed(), sigma);
}


/*********************************************************************************
  Function    : eval_bin
  Description : The following two routines provide rudimentary graphical output in
		the form of an ASCII histogram of the 1d state density.
  Parameter   : where (Input) -
  Return      : 
  Call	      :
*********************************************************************************/
/*
int
Condensation::eval_bin(float where)
{
	return (HistBins-1)/2 + (int) (where * (HistBins-1)/2 / global.disp.histogram_width);
}
*/

/*********************************************************************************
  Function    : display_histogram
  Description : 
  Parameter   : estimated_position (Input) -
  Return      : 
  Call	      :
*********************************************************************************/
/*
static void
Condensation::display_histogram(double estimated_position)
{
  static double bins[HistBins];

  int b, n, line, which_bin, meas_bin, est_bin, true_bin;
  double lineheight;
  char outc;

  for (b=0; b<HistBins; ++b)
    bins[b] = 0.0;

  for (n=0; n<global.nsamples; ++n) {
    which_bin = eval_bin(data.new_positions[n]);

    if (which_bin >=0 && which_bin < HistBins)
      bins[which_bin] +=
	data.sample_weights[n] / data.largest_cumulative_prob;
  }

  for (b=0; b<HistBins; ++b)
    bins[b] = (bins[b] * (double) HistLines) / MaxHistHeight;

  for (line=0; line<HistLines; ++line) {
    lineheight = (double) (HistLines-1-line);
    for (b=0; b<HistBins; ++b) {
      if (line==0 && bins[b] >= lineheight+1.0)
	outc = '*';
      else if (bins[b] >= lineheight+0.5 && bins[b] < lineheight+1.0)
	outc = '-';
      else if (bins[b] >= lineheight && bins[b] < lineheight+0.5)
	outc = '_';
      else
	outc = ' ';
      printf("%c", outc);
    }
    printf("\n");
  }

  true_bin = eval_bin(data.meas.true);
  meas_bin = eval_bin(data.meas.observed);
  est_bin = eval_bin(estimated_position);

  for (b=0; b<HistBins; ++b) {
    if ((b == meas_bin && b == est_bin) ||
	(b == meas_bin && b == true_bin) ||
	(b == true_bin && b == est_bin))
      outc = '*';
    else if (b == true_bin)
      outc = '.';
    else if (b == meas_bin)
      outc = '+';
    else if (b == est_bin)
      outc = 'x';
    else
      outc = ' ';
    printf("%c", outc);
  }
  printf("\n");
}
*/

/*********************************************************************************
  Function    : display_data
  Description : This routine computes the estimated position of the object by
		estimating the mean of the state-distribution as a weighted mean of
		the sample positions, then displays a histogram of the state
		distribution along with a character denoting the estimated position
		of the object.
  Parameter   : iteration (Input) -
  Return      : 
  Call	      :
*********************************************************************************/
/*
void
Condensation::display_data(int iteration)
{
  int n;
  double aggregate;

  aggregate = 0.0;
*/
  /* Compute the unnormalised weighted mean of the sample
     positions. */
/*
  for (n=0; n<global.nsamples; ++n)
    aggregate += data.new_positions[n] * data.sample_weights[n];

  aggregate /= data.largest_cumulative_prob;

  display_histogram(aggregate);

  printf("%04d: Measured pos. % 3.4lf True pos. % 3.4lf Est. position % 3.4lf\n",
	 iteration, data.meas.observed, data.meas.true, aggregate);

#ifdef ANSI_TERM_SEQUENCES
*/
  /* If possible, run the cursor back up the screen so the histogram
     stays in the same place instead of scrolling down the display. */
/*
  printf("\033[%dA", HistLines+2);
  sleep(1);
#endif
}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
久久久av毛片精品| 亚洲v中文字幕| 亚洲精品成a人| 精品亚洲欧美一区| 欧美在线视频你懂得| 久久精品免费在线观看| 午夜久久久影院| 成人一区二区三区| 日韩午夜电影av| 怡红院av一区二区三区| 国产99久久久国产精品免费看| 欧美网站大全在线观看| 国产精品免费丝袜| 国产专区欧美精品| 欧美一区二区三区免费在线看| 一色桃子久久精品亚洲| 国产毛片精品视频| 日韩午夜三级在线| 日精品一区二区| 欧美日韩视频一区二区| 亚洲欧洲av色图| jlzzjlzz国产精品久久| 久久精品一区二区三区四区| 久久国产婷婷国产香蕉| 在线播放91灌醉迷j高跟美女| 中文字幕视频一区| 成人涩涩免费视频| 久久综合狠狠综合| 九色综合国产一区二区三区| 日韩一区二区在线看| 日韩高清国产一区在线| 欧美一区二区三区婷婷月色| 三级一区在线视频先锋| 欧美日韩亚洲国产综合| 亚洲一区二区三区中文字幕 | 黑人精品欧美一区二区蜜桃| 欧美电影在线免费观看| 亚洲午夜精品17c| 欧美视频完全免费看| 午夜影视日本亚洲欧洲精品| 欧美日韩国产一二三| 午夜国产精品一区| 欧美一级免费大片| 久草中文综合在线| 久久久久99精品国产片| www.日韩精品| 视频一区中文字幕国产| 538在线一区二区精品国产| 人人狠狠综合久久亚洲| 日韩视频免费观看高清完整版在线观看 | 亚洲视频一区二区在线观看| 91碰在线视频| 亚洲va欧美va人人爽午夜 | 首页国产欧美久久| 日韩精品一区二区三区三区免费| 国产一区二区三区香蕉| 国产精品免费aⅴ片在线观看| 不卡一区二区在线| 亚洲国产精品天堂| 久久综合狠狠综合久久激情| av不卡在线播放| 亚洲www啪成人一区二区麻豆| 制服丝袜av成人在线看| 国产成人丝袜美腿| 亚洲一区av在线| 精品国产一区久久| 91视频免费播放| 日韩va欧美va亚洲va久久| 久久精品夜色噜噜亚洲a∨| 91成人免费电影| 久久91精品久久久久久秒播| 国产精品久久久久久户外露出| 91福利国产成人精品照片| 免播放器亚洲一区| 中文字幕欧美一| 日韩午夜精品视频| 91久久免费观看| 国产综合色在线| 亚洲国产成人porn| 国产精品每日更新| 日韩午夜在线影院| 色哟哟日韩精品| 国产成人在线影院| 日韩国产精品91| 亚洲精品成人悠悠色影视| 久久中文娱乐网| 欧美日韩精品一区二区| 成人精品高清在线| 精品一区二区免费看| 亚洲一级片在线观看| 国产人成亚洲第一网站在线播放| 欧美一区二区性放荡片| 日本高清无吗v一区| 粉嫩在线一区二区三区视频| 美国三级日本三级久久99| 亚洲综合在线电影| 中文字幕一区二区三区视频| 日韩精品一区二区三区在线播放| 91精彩视频在线| 成人av在线影院| 成人午夜看片网址| 精品在线视频一区| 免费人成网站在线观看欧美高清| 一二三区精品视频| 亚洲免费三区一区二区| 日本一区二区高清| 国产欧美日韩精品a在线观看| 欧美大片在线观看| 日韩免费看的电影| 91精品蜜臀在线一区尤物| 欧美日韩亚洲综合一区二区三区| 色婷婷综合久久久| 在线观看日韩高清av| 色婷婷久久久亚洲一区二区三区 | 亚洲欧美乱综合| 亚洲丝袜美腿综合| 亚洲免费资源在线播放| 亚洲精品国产成人久久av盗摄| 亚洲欧美韩国综合色| 亚洲美女在线一区| 亚洲一区二区三区四区五区中文| 亚洲免费大片在线观看| 亚洲第一搞黄网站| 日产欧产美韩系列久久99| 日日噜噜夜夜狠狠视频欧美人| 日韩国产精品久久久| 久久成人免费电影| 国产精品99久久久久| 高清成人免费视频| 99riav久久精品riav| 欧美日韩一区三区四区| 日韩三级视频在线观看| 日韩精品一区二区三区视频在线观看 | 国产在线不卡一区| 成人免费黄色大片| 色国产综合视频| 欧美丰满高潮xxxx喷水动漫| 欧美xxxxx裸体时装秀| 久久综合久久综合亚洲| 国产精品久久久久久久久果冻传媒 | 亚洲va欧美va天堂v国产综合| 免费在线观看一区| 国产黑丝在线一区二区三区| av一区二区三区四区| 欧美日韩一区精品| 欧美麻豆精品久久久久久| 9191国产精品| 国产蜜臀av在线一区二区三区| 亚洲精品水蜜桃| 免费一级欧美片在线观看| 国产成人免费在线观看不卡| 在线视频综合导航| 精品国产青草久久久久福利| 国产精品人人做人人爽人人添| 午夜成人免费视频| 国产69精品一区二区亚洲孕妇 | 亚洲午夜精品久久久久久久久| 久久精品国产精品青草| 91亚洲精品久久久蜜桃| 欧美一区午夜精品| 国产精品的网站| 久久精品国产精品亚洲红杏| 色欧美日韩亚洲| 久久婷婷国产综合国色天香 | 91免费看视频| 精品久久一二三区| 亚洲成人免费av| 国产不卡高清在线观看视频| 欧美伦理影视网| 亚洲欧美一区二区不卡| 狠狠色2019综合网| 欧美日韩国产首页在线观看| 国产精品国产三级国产普通话蜜臀| 视频一区视频二区中文字幕| 91美女视频网站| 国产精品全国免费观看高清| 久久国产精品第一页| 色呦呦国产精品| 国产精品久线观看视频| 国内精品写真在线观看| 欧美日韩午夜在线视频| 18涩涩午夜精品.www| 成人午夜看片网址| 久久先锋资源网| 黄色日韩三级电影| 欧美精品色综合| 亚洲国产成人av网| 91精品办公室少妇高潮对白| 亚洲欧洲日产国码二区| 国产成人8x视频一区二区| www国产成人免费观看视频 深夜成人网| 视频一区视频二区中文| 欧美日韩国产欧美日美国产精品| 亚洲欧美电影一区二区| www.久久精品| 国产精品大尺度| 99re热这里只有精品免费视频| 国产精品女主播在线观看| 成人性生交大片免费看在线播放| 国产区在线观看成人精品|