17 #ifndef mitkCostFunctionBase_h
18 #define mitkCostFunctionBase_h
26 #include "MitkConnectomicsExports.h"
33 template <
typename TPixel,
unsigned int VImageDimension>
38 typedef itk::Image< TPixel, VImageDimension >
ImageType;
40 void SetImage(itk::Image<TPixel, VImageDimension> *);
41 void SetRegion(std::pair<RegionType, int>);
50 std::pair<RegionType, int> m_RegionPair;
55 int RegionIsFullEnough ();
59 int SidesAreNotTooLong ();
63 int COMLiesWithinParcel();
65 std::vector<double> GetCenterOfMass();
67 std::vector<int> m_weight;
itk::ImageRegion< 3 > RegionType
void SetImage(itk::Image< TPixel, VImageDimension > *)
void SetRegion(std::pair< RegionType, int >)
DataCollection - Class to facilitate loading/accessing structured data.
int CalculateCost()
Checks if the functions RegionIsFullEnough, SidesAreNotTooLong and COMLiesWithinParcel all return val...
int MaximalValue()
Calculates the maximal possible value of the cost function.
itk::Image< TPixel, VImageDimension > ImageType