6#ifndef iipr_CLensCorrFindSupplierComp_included
7#define iipr_CLensCorrFindSupplierComp_included
41 I_REGISTER_SUBELEMENT(SearchParamsConstraints);
43 I_REGISTER_SUBELEMENT_INTERFACE(SearchParamsConstraints,
istd::IChangeable, ExtractSearchParamsConstraints);
44 I_ASSIGN(m_bitmapProviderCompPtr,
"BitmapProvider",
"Provide input image",
true,
"BitmapProvider");
45 I_ASSIGN_TO(m_bitmapProviderModelCompPtr, m_bitmapProviderCompPtr,
false);
46 I_ASSIGN_TO(m_bitmapProviderSupplierCompPtr, m_bitmapProviderCompPtr,
false);
47 I_ASSIGN(m_pointFinderCompPtr,
"PointFinder",
"Finder of points on image",
true,
"PointFinder");
48 I_ASSIGN(m_gridSearchParamsIdAttrPtr,
"GridSearchParamsId",
"ID of general search parameters (imeas::INumericValue)",
false,
"GridSearchParams");
49 I_ASSIGN(m_defaultGridSearchParamsCompPtr,
"DefaultGridSearchParams",
"Default search parameters as defined in subelement DefaultSearchParamsConstraints",
false,
"DefaultGridSearchParams");
50 I_ASSIGN(m_smoothKernelAttrPtr,
"SpaceSmoothKernel",
"Size of kernel will be used to smooth hough space",
true, 10);
51 I_ASSIGN(m_searchCenterParamIdAttrPtr,
"SearchCenterParamId",
"ID of parameter to enable search of center (iprm::IEnableableParam)",
false,
"SearchCenter");
52 I_ASSIGN(m_defaultSearchCenterParamCompPtr,
"DefaultSearchCenterParam",
"Default parameter enabling search of center",
false,
"DefaultSearchCenterParam");
93 bool searchCenterFlag,
112 template <
class InterfaceType>
122 I_ATTR(QByteArray, m_gridSearchParamsIdAttrPtr);
124 I_ATTR(
int, m_smoothKernelAttrPtr);
125 I_ATTR(QByteArray, m_searchCenterParamIdAttrPtr);
Definition of a line in 2D-space.
Definition of position or mathematical vector on 2D plane.
Common interface for an object, which delivers a 2D-calibration.
Hough space used for 2d Hough transformations.
Represents simple correction of image distortion by lenses.
Definition of single plane bitmap.
Bitmap supplier allowing to access of produced bitmap.
Base interface for suppliers providing calculating of objects on demand ("pull data" model).
Standard implementation of interface iinsp::ISupplier with preparation for component implementation.
virtual bool AddFeature(const imeas::INumericValue *featurePtr, bool *isFullPtr=nullptr)
Add new feature to the set of features.
virtual void ResetFeatures()
Remove all features from this container.
Supplier of bitmap built on difference of two images.
iinsp::TSupplierCompWrap< icalib::CSimpleLensCorrection > BaseClass
const i2d::ICalibration2d * GetCalibration() const override
Get access to transformation object, which transforms a local logical coordinate system to global one...
void AddCorrectPointsMessage(const AllCorrectionInfos &allCorrectionInfos, const icalib::CSimpleLensCorrection &inputCorrection, const i2d::CVector2d &imageCenter) const
i2d::CLine2d CalcCorrespondingLine(const i2d::CVector2d &houghPos, const i2d::CVector2d &imageCenter, const istd::CIndex2d &spaceSize) const
QList< CorrectionInfo > CorrectionInfos
bool CalculateCalibrationFactors(const AllCorrectionInfos &allCorrectionInfos, bool searchCenterFlag, const icalib::CSimpleLensCorrection &inputCorrection, icalib::CSimpleLensCorrection &result) const
QList< CorrectionLineInfo > AllCorrectionInfos
void OnComponentCreated() override
QList< FeatureInfo > Features
int ProduceObject(ProductType &result) const override
Produce single object.
i2d::CVector2d CalcHoughPos(const i2d::CVector2d &point1, const i2d::CVector2d &point2, const i2d::CVector2d &imageCenter, const istd::CIndex2d &spaceSize) const
void UpdateHoughSpace(const i2d::CVector2d &point1, const i2d::CVector2d &point2, double weight, const i2d::CVector2d &imageCenter, ialgo::CHoughSpace2d &space) const
bool CalculateCalibration(const iimg::IBitmap &image, icalib::CSimpleLensCorrection &result) const
Common interface for a features container consuming feature objects.
Allow to extract some features from the image.
Implementation of imath::IDoubleManip interface for fixed point arithmentic.
General implementation of the IUnitInfo interface.
Simple implementation of imeas::INumericConstraints interface.
Describe additional meta information for set of numeric values.
General parameter set containing list of numeric values.
Common interface for model objects, that supports Model/Observer design pattern.
Interface for objects which can be enabled/disabled.
Index implementation for addressing elements in 2D-space.
Common interface for data model objects, which can be changed.
Contains the image processing classes.
i2d::CVector2d orthoVector