|
| CCaliperLineFinderComp () |
|
virtual iproc::CTaskState | DoExtractFeatures (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, IFeaturesConsumer &results, iproc::IProgressManager *progressManagerPtr=nullptr) override |
|
virtual iproc::CTaskState | DoProcessing (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, istd::IChangeable *outputPtr, bool allowAsync=false, iproc::IProgressManager *progressManagerPtr=nullptr) override |
|
| CLoggerBase () |
|
const QByteArray & | GetVerboseSenderId () const |
| Get sender ID for verbose messages.
|
|
void | SetVerboseSenderId (const QByteArray &id) |
| Set sender ID for verbose messages.
|
|
void | SetLogPtr (ilog::IMessageConsumer *logPtr) override |
| Install log.
|
|
ilog::IMessageConsumer * | GetLogPtr () const override |
| Get log.
|
|
| TSyncProcessorWrap () |
|
int | GetProcessorState (const iprm::IParamsSet *paramsPtr) const override |
|
bool | AreParamsAccepted (const iprm::IParamsSet *paramsPtr, const istd::IPolymorphic *inputPtr, const istd::IChangeable *outputPtr) const override |
|
void | InitProcessor (const iprm::IParamsSet *paramsPtr, bool doReset) override |
|
|
double | DoFindSingleLine (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, i2d::CLine2d &result) |
|
double | DoFindParallelLines (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, i2d::CParallelogram &result) |
|
bool | CalcRays (const iprm::IParamsSet *paramsPtr, const iimg::IBitmap &image, Rays &inRays, Rays &outRays, double &minOutlierDist) |
|
void | AddIntermediateResults (const Rays &outRays, const QString &name) |
|
void | OnComponentCreated () override |
|
virtual void | DecorateMessage (istd::IInformationProvider::InformationCategory category, int id, int flags, QString &message, QString &messageSource) const override |
| Decorate message parts before outputting.
|
|
void | OnComponentCreated () override |
|
void | OnComponentDestroyed () override |
|
bool | IsVerboseEnabled () const |
| Check if verbose messages are enabled.
|
|
bool | SendVerboseMessage (const QString &message, const QString &messageSource=QString()) const |
| Send verbose message.
|
|
bool | SendInfoMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send info message to log.
|
|
bool | SendWarningMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send warning message to log.
|
|
bool | SendErrorMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send error message to log.
|
|
bool | SendCriticalMessage (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send critical message to log.
|
|
bool | SendInfoMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once info message to log.
|
|
bool | SendWarningMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once warning message to log.
|
|
bool | SendErrorMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once error message to log.
|
|
bool | SendCriticalMessageOnce (int id, const QString &message, const QString &messageSource=QString(), int flags=0) const |
| Send once critical message to log.
|
|
bool | SendUserMessage (const istd::IInformationProvider *messagePtr) const |
| Send message with user object.
|
|
bool | AllowMessageOnceAgain (int id) |
| Reset message lock.
|
|
bool | IsLogConsumed (const istd::IInformationProvider::InformationCategory *categoryPtr=nullptr, const int *flagsPtr=nullptr) const override |
| Check if any log message is consumed.
|
|
bool | SendLogMessage (istd::IInformationProvider::InformationCategory category, int id, const QString &message, const QString &messageSource, int flags=0) const override |
| Send any message to log.
|
|
|
typedef std::vector< Ray > | Rays |
|
static void | AddProjectionResultsToRays (const i2d::CLine2d &projectionLine, const iprm::IParamsSet ¶ms, const IFeaturesProvider &container, const IFeatureToImageMapper &featuresMapper, const i2d::ICalibration2d *resultCalibPtr, Rays &inRays, Rays &outRays) |
|
static bool | DecomposeToLines (const istd::IChangeable &aoiObject, int maxRays, bool allowComposed, i2d::CVector2d &suggestedCenter, std::function< bool(const i2d::CLine2d &)> lineFn) |
| Decompose some aoi object to single line calls.
|
|
static bool | DecomposeAnnulus (const i2d::CAnnulus &annulus, int maxRays, i2d::CVector2d &suggestedCenter, std::function< bool(const i2d::CLine2d &)> lineFn) |
| Decompose anulus to single line calls.
|
|
static bool | DecomposeRect (const i2d::CRectangle &rect, int maxRays, i2d::CVector2d &suggestedCenter, std::function< bool(const i2d::CLine2d &)> lineFn) |
| Decompose rectangle to single line calls.
|
|
static int | AddAoiToRays (const istd::IChangeable &aoiObject, iproc::IProcessor &caliper, const QByteArray &lineParamId, const iprm::IParamsSet *paramsPtr, const IFeatureToImageMapper &featuresMapper, const i2d::ICalibration2d *resultCalibPtr, const iimg::IBitmap &image, const iipr::ICaliperFinderParams &finderParams, bool allowComposed, Rays &inRays, Rays &outRays, i2d::CVector2d &suggestedCenter) |
| Add some aoi object to the lists of rays.
|
|
QSet< int > | m_onceMessageIds |
|
Caliper based line finder.
This is realized as processor, as input the image, as output consumer of features must be given. It uses set of 1D caliper lines to find the position and radius of circle. It takes area of interests (AOI) from parameter set. As AOI can be used annulus, segment of annulus, rectangle and set of segments of annulus.
Definition at line 35 of file CCaliperLineFinderComp.h.