Commit 48859831 authored by Stefan Philips's avatar Stefan Philips
Browse files

[FIX] avoid out of bond errors for spherical harmonics with an order greater than 4

parent 7ce9f158
...@@ -152,7 +152,7 @@ double WSymmetricSphericalHarmonic::calcGFA( std::vector< WUnitSphereCoordinates ...@@ -152,7 +152,7 @@ double WSymmetricSphericalHarmonic::calcGFA( std::vector< WUnitSphereCoordinates
double d = 0.0; double d = 0.0;
double gfa = 0.0; double gfa = 0.0;
double mean = 0.0; double mean = 0.0;
double v[ 15 ]; std::vector< double > v( orientations.size() );
for( std::size_t i = 0; i < orientations.size(); ++i ) for( std::size_t i = 0; i < orientations.size(); ++i )
{ {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment