Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033 #include "cmtkSplineWarpCongealingFunctional.h"
00034
00035 namespace
00036 cmtk
00037 {
00038
00041
00042 void
00043 SplineWarpCongealingFunctional::StaticThreadStorage::Initialize( const Self* This )
00044 {
00045 const size_t numberOfXforms = This->m_XformVector.size();
00046
00047 this->m_FPlus.resize( 3 * numberOfXforms );
00048 this->m_FMinus.resize( 3 * numberOfXforms );
00049 this->m_CountByParameterPlus.resize( 3 * numberOfXforms );
00050 this->m_CountByParameterMinus.resize( 3 * numberOfXforms );
00051
00052 this->m_Xforms.resize( numberOfXforms );
00053 for ( size_t xi = 0; xi < numberOfXforms; ++xi )
00054 {
00055 this->m_Xforms[xi] = SplineWarpXform::SmartPtr( This->GetXformByIndex(xi)->Clone() );
00056 }
00057
00058 this->m_VectorList.resize( This->m_MaximumNumberOfPixelsPerLineVOI );
00059 this->m_Count.resize( This->m_MaximumNumberOfPixelsPerLineVOI );
00060 this->m_Histogram.resize( This->m_MaximumNumberOfPixelsPerLineVOI );
00061 for ( size_t x = 0; x < This->m_MaximumNumberOfPixelsPerLineVOI; ++x )
00062 {
00063 this->m_Histogram[x].Resize( This->m_HistogramBins + 2 * This->m_HistogramKernelRadiusMax, false );
00064 }
00065
00066 this->m_NeedToCopyXformParameters = true;
00067 }
00068
00069 }