bool library_geostat_init::bind_geostat_factories( Manager* dir ) {
  bool ok;
  ok = dir->factory( Kriging().name(), Kriging::create_new_interface );
  ok = dir->factory( Sgsim().name(), Sgsim::create_new_interface );
  ok = dir->factory( Indicator_kriging().name(), 
		Indicator_kriging::create_new_interface );
  ok = dir->factory( Cokriging().name(), Cokriging::create_new_interface );
  ok = dir->factory( Kriging_x_validation().name(), Kriging_x_validation::create_new_interface );
  ok = dir->factory( Cokriging_x_validation().name(), Cokriging_x_validation::create_new_interface );

  ok = dir->factory( Sisim().name(), Sisim::create_new_interface );
  ok = dir->factory( Cosgsim().name(), Cosgsim::create_new_interface );
  ok = dir->factory( Cosisim().name(), Cosisim::create_new_interface );
  ok = dir->factory( Snesim_Std().name(), Snesim_Std::create_new_interface );

  ok = dir->factory( Postsim().name(), Postsim::create_new_interface );
  ok = dir->factory( Postsim_categorical().name(), Postsim_categorical::create_new_interface );
  ok = dir->factory( PostKriging().name(), PostKriging::create_new_interface );
  ok = dir->factory( trans().name(), trans::create_new_interface );
  ok = dir->factory( transcat().name(), transcat::create_new_interface );
  ok = dir->factory( ImageProcess().name(), ImageProcess::create_new_interface );

//  ok = dir->factory( transcat().name(), transcat::create_new_interface );
  ok = dir->factory( dssim().name(), dssim::create_new_interface );
  ok = dir->factory( LU_sim().name(), LU_sim::create_new_interface );
//  ok = dir->factory( LU_sim().name(), LU_sim::create_new_interface );
  ok = dir->factory( Filtersim_Cate().name(), Filtersim_Cate::create_new_interface );
  ok = dir->factory( Filtersim_Cont().name(), Filtersim_Cont::create_new_interface );
  ok = dir->factory( NuTauModel().name(), NuTauModel::create_new_interface );
  ok = dir->factory( Moving_window().name(), Moving_window::create_new_interface );
  ok = dir->factory( DiffProperties().name(), DiffProperties::create_new_interface );
  ok = dir->factory( KrigingMean().name(), KrigingMean::create_new_interface );
  ok = dir->factory( Declus().name(), Declus::create_new_interface );
  ok = dir->factory( Kmeans_clustering().name(), Kmeans_clustering::create_new_interface );
  ok = dir->factory( Clustering_from_centroids().name(), Clustering_from_centroids::create_new_interface );
  


  return true;
}
Exemplo n.º 2
0
bool library_geostat_init::bind_geostat_factories( Manager* dir ) {
  dir->factory( Kriging().name(), Kriging::create_new_interface );
  dir->factory( Sgsim().name(), Sgsim::create_new_interface );
  dir->factory( Indicator_kriging().name(), 
		Indicator_kriging::create_new_interface );
  dir->factory( Cokriging().name(), Cokriging::create_new_interface );
  dir->factory( Sisim().name(), Sisim::create_new_interface );
  dir->factory( Cosgsim().name(), Cosgsim::create_new_interface );
  dir->factory( Cosisim().name(), Cosisim::create_new_interface );
  dir->factory( Snesim_Std().name(), Snesim_Std::create_new_interface );
  dir->factory( Postsim().name(), Postsim::create_new_interface );
  dir->factory( PostKriging().name(), PostKriging::create_new_interface );
  dir->factory( trans().name(), trans::create_new_interface );
  dir->factory( transcat().name(), transcat::create_new_interface );
  dir->factory( ImageProcess().name(), ImageProcess::create_new_interface );
  dir->factory( dssim().name(), dssim::create_new_interface );
  dir->factory( LU_sim().name(), LU_sim::create_new_interface );
  dir->factory( Filtersim_Cate().name(), Filtersim_Cate::create_new_interface );
  dir->factory( Filtersim_Cont().name(), Filtersim_Cont::create_new_interface );
  dir->factory( NuTauModel().name(), NuTauModel::create_new_interface );
  dir->factory( Moving_window().name(), Moving_window::create_new_interface );

  return true;
}
Exemplo n.º 3
0
/* 从image对象中提取特征值 */
static FvsError_t 
img_to_minutias(FvsImage_t image, FvsImage_t mask, FvsMinutiaSet_t minutia)
{
	FvsError_t err;
	char origin_image[32];
	char thin_image[32];
	char minutia_image[32];
	
#ifdef DEBUG_FVS

	strcpy(origin_image, "origin.bmp");
	strcpy(thin_image, "thin.bmp");
	strcpy(minutia_image, "minutias.bmp");
	
	__ExportImage(image, origin_image, 8);
	
	/*
	strcpy(thin_image, image);
	strcpy(minutia_image, image);
	for (i = 0; ; i++) {
		if (tmp1[i] == 0)
			exit(-1);
			
		if (tmp1[i] == '.') {
			if (i == 0)
				exit(-1);
			strcpy(&thin_image[i], "_thin.bmp");
			strcpy(&minutia_image[i], "_minutia.bmp");
			break;
		}
	}
	*/
#endif

#if 1
	DP("---> Processing image...\n");
	err = ImageProcess(NULL, image, mask);
	#if 1   
	if(err == FvsBadFingerprint)
	{
	   printf("\nOops, the fingerprint is too bad !");
	   return err;
	}
	#endif
	
#ifdef DEBUG_FVS
	//ExportImage(image, thin_image);
	DP("---> Export thin image...\n");
	__ExportImage(image, thin_image, 8);
#endif

	DP("---> Get minutia set from thin image...\n");
	err = GetMinutiaSet(NULL, image, mask, minutia);

#ifdef DEBUG_FVS
	DP("---> Export minutia set image...\n");
	__ExportImage(image, minutia_image, 8);
#endif

#endif /* end if 0 */
	return err;
	
}