14 #ifndef mitkAbstractGlobalImageFeature_h 15 #define mitkAbstractGlobalImageFeature_h 29 #include <Eigen/Dense> 146 virtual void CalculateFeaturesSliceWiseUsingParameters(
const Image::Pointer & feature,
const Image::Pointer &
mask,
int sliceID, FeatureListType &featureList);
156 virtual FeatureNameListType GetFeatureNames() = 0;
161 virtual std::string GetCurrentFeatureEncoding();
171 std::string FeatureDescriptionPrefix();
173 itkSetMacro(Prefix, std::string);
174 itkSetMacro(ShortName, std::string);
175 itkSetMacro(LongName, std::string);
176 itkSetMacro(FeatureClassName, std::string);
177 itkSetMacro(Direction,
int);
180 itkGetConstMacro(Prefix, std::string);
181 itkGetConstMacro(ShortName, std::string);
182 itkGetConstMacro(LongName, std::string);
183 itkGetConstMacro(FeatureClassName, std::string);
184 itkGetConstMacro(Parameter, ParameterTypes);
186 itkSetMacro(UseQuantifier,
bool);
187 itkGetConstMacro(UseQuantifier,
bool);
191 itkGetConstMacro(Direction,
int);
193 itkSetMacro(MinimumIntensity,
double);
194 itkSetMacro(UseMinimumIntensity,
bool);
195 itkSetMacro(MaximumIntensity,
double);
196 itkSetMacro(UseMaximumIntensity,
bool);
197 itkGetConstMacro(MinimumIntensity,
double);
198 itkGetConstMacro(UseMinimumIntensity,
bool);
199 itkGetConstMacro(MaximumIntensity,
double);
200 itkGetConstMacro(UseMaximumIntensity,
bool);
203 itkSetMacro(Binsize,
double);
204 itkSetMacro(UseBinsize,
bool);
205 itkGetConstMacro(Binsize,
double);
206 itkGetConstMacro(UseBinsize,
bool);
211 itkSetMacro(Bins,
int);
212 itkSetMacro(UseBins,
bool);
213 itkGetConstMacro(UseBins,
bool);
214 itkGetConstMacro(Bins,
int);
216 itkSetMacro(IgnoreMask,
bool);
217 itkGetConstMacro(IgnoreMask,
bool);
219 itkSetMacro(EncodeParameters,
bool);
220 itkGetConstMacro(EncodeParameters,
bool);
224 if (m_Prefix.length() > 0)
225 return m_Prefix +
"::" + m_ShortName;
231 std::vector<double> SplitDouble(std::string str,
char delimiter);
236 std::string QuantifierParameterString();
250 if(IsInitialized() ==
false)
253 if(timeGeometry ==
nullptr)
260 std::string m_Prefix;
261 std::string m_ShortName;
262 std::string m_LongName;
263 std::string m_FeatureClassName;
264 ParameterTypes m_Parameter;
266 bool m_UseQuantifier =
false;
269 double m_MinimumIntensity = 0;
270 bool m_UseMinimumIntensity =
false;
271 double m_MaximumIntensity = 100;
272 bool m_UseMaximumIntensity =
false;
273 bool m_EncodeParameters =
false;
275 double m_Binsize = 1;
276 bool m_UseBinsize =
false;
279 bool m_UseBins =
true;
282 bool m_IgnoreMask =
false;
283 bool m_CalculateWithParameter =
false;
291 #endif //mitkAbstractGlobalImageFeature_h void SetRequestedRegion(const itk::DataObject *) override
Set the requested region from this data object to match the requested region of the data object passe...
std::vector< std::string > FeatureNameListType
Base of all data objects.
bool IsEmpty() const override
Check whether object contains data (at least at one point in time), e.g., a set of points may be empt...
DataCollection - Class to facilitate loading/accessing structured data.
bool VerifyRequestedRegion() override
Verify that the RequestedRegion is within the LargestPossibleRegion.
bool RequestedRegionIsOutsideOfTheBufferedRegion() override
Determine whether the RequestedRegion is outside of the BufferedRegion.
#define MITKCLCORE_EXPORT
std::vector< std::pair< std::string, double > > FeatureListType
void SetRequestedRegionToLargestPossibleRegion() override
Set the RequestedRegion to the LargestPossibleRegion.
#define mitkClassMacro(className, SuperClassName)
std::string GetOptionPrefix() const
std::map< std::string, us::Any > ParameterTypes
void SetParameter(ParameterTypes param)
mitk::Image::Pointer mask
void CalculateFeatures(mitk::CoocurenceMatrixHolder &holder, mitk::CoocurenceMatrixFeatures &results)