26 #ifndef LIBRARIES_RECONSTRUCTION_AEXTREMA_FINDER_H_ 27 #define LIBRARIES_RECONSTRUCTION_AEXTREMA_FINDER_H_ 65 float maxDistFromCenter = 0.f;
83 const auto center = getCenter();
84 if (0 == maxDistFromCenter) {
88 if (maxDistFromCenter >= center.x) {
91 }
else if (dims.
is2D()) {
92 if ((maxDistFromCenter >= center.x)
93 || (maxDistFromCenter >= center.y)) {
97 if ((maxDistFromCenter >= center.x)
98 || (maxDistFromCenter >= center.y)
99 || (maxDistFromCenter >= center.z)) {
117 void find(
const T *data);
121 return *m_settings.hw.at(0);
137 virtual void check()
const = 0;
139 virtual void initMax() = 0;
140 virtual void findMax(
const T *data) = 0;
143 virtual void initLowest() = 0;
144 virtual void findLowest(
const T *data) = 0;
147 virtual void initMaxAroundCenter() = 0;
148 virtual void findMaxAroundCenter(
const T *data) = 0;
151 virtual void initLowestAroundCenter() = 0;
152 virtual void findLowestAroundCenter(
const T *data) = 0;
171 std::vector<T> m_values;
172 std::vector<float> m_positions;
Point3D< size_t > getCenter() const
const std::vector< float > & getPositions() const
CUDA_HD constexpr bool is2D() const
#define REPORT_ERROR(nerr, ErrormMsg)
constexpr bool isInitialized() const
CUDA_HD constexpr size_t z() const
std::vector< SelLine >::iterator find(std::vector< SelLine > &text, const std::string &img_name)
virtual ~AExtremaFinder()
std::vector< float > & getPositions()
CUDA_HD constexpr size_t x() const
constexpr bool is1D() const
CUDA_HD constexpr size_t y() const
const std::vector< T > & getValues() const
const ExtremaFinderSettings & getSettings() const
constexpr bool isValid() const
std::vector< T > & getValues()
Incorrect value received.
check(nparam, nf, nfsr, &Linfty, nineq, nineqn, neq, neqn, ncsrl, ncsrn, mode, &modem, eps, bgbnd, param)
Some logical error in the pipeline.