28 #ifndef IBVOXCOLLECTION_H
29 #define IBVOXCOLLECTION_H
31 #include <Math/Dense.h>
32 #include <Math/ContainerBox.h>
33 #include <Math/VoxImage.h>
39 namespace IBInterface {
49 namespace IBAbstract {
63 typedef uLib::VoxImage<IBVoxel> BaseClass;
76 template <
typename StaticUpdateAlgT >
80 template <
typename UpdateAlgT >
81 void UpdateDensity(UpdateAlgT &algorithm,
unsigned int threshold);
87 inline void InitCount(
unsigned int count);
98 out*=((p0/15)*(p0/15));
104 out/=((p0/15)*(p0/15));
109 float getVoxelMCDensity(
const char* file, uLib::HPoint3f c1, uLib::HPoint3f c2,
int nrandom=1000);
120 BaseClass::InitVoxels(value);
128 for(
unsigned int i=0; i<this->Data().size(); ++i) {
129 this->Data().operator [](i).Count = count;
135 for(
unsigned int i=0; i<this->Data().size(); ++i) {
136 this->Data().operator [](i).SijCap = 0;
143 template <
class UpdateAlgT >
145 unsigned int threshold) {
148 algorithm(
this, threshold);
151 if(m_MAPAlgorithm) m_MAPAlgorithm->
UpdateDensity(
this, threshold);
157 template <
class StaticUpdateAlgT >
161 StaticUpdateAlgT::UpdateDensity(
this,threshold);
164 if(m_MAPAlgorithm) m_MAPAlgorithm->
UpdateDensity(
this, threshold);
Definition: IBVoxCollection.h:51
void InitLambda(const IBVoxel &value)
Definition: IBVoxCollection.h:118
float getVoxelMCDensity(const char *file, uLib::HPoint3f c1, uLib::HPoint3f c2, int nrandom=1000)
virtual void operator()(IBVoxCollection *, unsigned int)=0
IBVoxCollection InvLradToLambda(float p0)
Definition: IBVoxCollection.h:103
void UpdateDensity(unsigned int threshold)
Definition: IBVoxCollection.h:158
int CountLambdaOverThreshold(float threshold)
void check_structural()
Definition: IBVoxCollection.h:42
virtual void UpdateDensity(IBVoxCollection *voxels, unsigned int threshold)=0
void SetMAPAlgorithm(IBAbstract::IBVoxCollectionMAPAlgorithm *algorithm)
IBVoxCollection LambdaToInvLrad(float p0)
Definition: IBVoxCollection.h:97
IBVoxCollection getMCImage(const char *file, int nsamples)
Definition: IBVoxCollection.h:41
Definition: IBVoxCollection.h:62
Definition: IBVoxCollection.h:55
void InitCount(unsigned int count)
Definition: IBVoxCollection.h:126
void resetSijCap()
Definition: IBVoxCollection.h:133