31 #ifndef SPHERICALTENSOR_HH 32 #define SPHERICALTENSOR_HH 76 :
s(sigma),
l(laplace),
b(band)
105 if (s < rhs.
s)
return true;
106 if (s == rhs.
s && l < rhs.
l)
return true;
107 if (s == rhs.
s && l == rhs.
l && b < rhs.
b)
return true;
142 double factor = 1.0);
157 template<
typename DataT>
158 void STderiv(
const blitz::Array<DataT,3>& data,
160 const double sigma,
const int laplace,
178 template<
typename DataT>
199 template<
typename DataT>
206 #include "SphericalTensor.icc" Array class derived from blitz++ Arrays for handling microscopic datasets with associated element siz...
void STderivReal(double *in, BlitzIndexT sz[], BlitzIndexT L, double *out, double factor=1.0)
Compute real spherical derivatives of the tensor with given rank (band).
void STderiv(const blitz::Array< DataT, 3 > &data, std::map< SDMagFeatureIndex, blitz::Array< DataT, 3 > *> &out, const double sigma, const int laplace, const BlitzIndexT maxBand)
Wrapper method for computing spherical tensorial derivative magnitude features.
The Array class is an extension to the blitz++ Array class providing additional parameters element si...
std::ostream & operator<<(std::ostream &os, BasicTreeNode< KeyT, ContentT > const &n)
int b
The spherical tensor band to compute the magnitude for.
~SDMagFeatureIndex()
Destructor.
Data structure to index a feature structure consisting of multi-scale spherical derivative features...
int BlitzIndexT
The native integer type for indexing blitz++ Arrays.
int l
The Laplace order of the spherical feature (l Laplacian filters are applied prior to spherical tensor...
SDMagFeatureIndex(const double sigma, const int laplace, const int band)
Create a new feature index for a rotation-invariant spherical tensor magnitude feature.
bool operator<(const SDMagFeatureIndex &rhs) const
Strict weak ordering of spherical tensors for sorting.
double s
Standard deviation of the Gaussian fliter used for scale selection.