7 template <
class PixelScalarType>
12 Superclass::BeforeThreadedGenerateData();
14 unsigned int ndim = this->GetInput(0)->GetNumberOfComponentsPerPixel();
15 m_LOrder = (
unsigned int)floor((-3.0 + sqrt(8.0 * ndim + 1.0))/2.0);
23 template <
class PixelScalarType>
29 if (m_SampleDirections.size() == 0)
30 return patientVectorValue.GetSize();
32 unsigned int numItems = databaseValues.size();
33 for (
unsigned int i = 0;i < numItems;++i)
34 databaseValues[i] = m_ShData->GetSampleValues(databaseValues[i],m_SampleDirections);
36 patientVectorValue = m_ShData->GetSampleValues(patientVectorValue,m_SampleDirections);
38 return patientVectorValue.GetSize();
InputImageType::PixelType VectorType
virtual void BeforeThreadedGenerateData() ITK_OVERRIDE
unsigned int SampleFromDiffusionModels(std::vector< VectorType > &databaseValues, VectorType &patientVectorValue) ITK_OVERRIDE