32#ifndef eman_boxingtools_h__
33#define eman_boxingtools_h__ 1
46#include <gsl/gsl_matrix.h>
88 static vector<IntPoint>
auto_correlation_pick(
const EMData*
const image,
float threshold,
int radius,
const vector<float>& profile,
EMData*
const exclusion,
const int cradius,
int mode=1);
90 static bool hi_brid(
const EMData*
const image,
int x,
int y,
int radius,
EMData*
const exclusion_map, vector<float>& profile);
96 static map<unsigned int, unsigned int>
classify(
const vector<vector<float> >& data,
const unsigned int& classes = 4);
100 static void set_region(
EMData*
const image,
const EMData*
const mask,
const int x,
const int y,
const float& val );
119 BoxSVDClassifier(
const vector<vector<float> >& data,
const unsigned int& classes = 4);
123 map< unsigned int, unsigned int>
go();
128 static map< unsigned int, unsigned int>
colorMappingByClassSize(
const map< unsigned int, unsigned int>& grouping );
130 const vector<vector<float> >&
mData;
138 map< unsigned int, unsigned int>
randomSeedCluster(
const gsl_matrix*
const svd_coords,
unsigned int matrix_dims);
139 map< unsigned int, unsigned int>
getIterativeCluster(
const gsl_matrix*
const svd_coords,
const map< unsigned int, unsigned int>& current_grouping);
141 bool setDims(
const vector<vector<float> >& data );
143 vector<vector<float> >
getDistances(
const gsl_matrix*
const svd_coords,
const gsl_matrix*
const ref_coords);
145 map< unsigned int, unsigned int>
getMapping(
const vector<vector<float> >& distances);
const vector< vector< float > > & mData
map< unsigned int, unsigned int > getIterativeCluster(const gsl_matrix *const svd_coords, const map< unsigned int, unsigned int > ¤t_grouping)
map< unsigned int, unsigned int > go()
bool setDims(const vector< vector< float > > &data)
map< unsigned int, unsigned int > randomSeedCluster(const gsl_matrix *const svd_coords, unsigned int matrix_dims)
static map< unsigned int, unsigned int > colorMappingByClassSize(const map< unsigned int, unsigned int > &grouping)
BoxSVDClassifier(const vector< vector< float > > &data, const unsigned int &classes=4)
map< unsigned int, unsigned int > getMapping(const vector< vector< float > > &distances)
vector< vector< float > > getDistances(const gsl_matrix *const svd_coords, const gsl_matrix *const ref_coords)
EMData stores an image's data and defines core image processing routines.
IntPoint defines an integer-coordinate point in a 1D/2D/3D space.