![]() |
IPSDK
4_1_0_2
IPSDK : Image Processing Software Development Kit
|
Measure result. More...
Classes | |
| class | ipsdk::shape::analysis::CollMeasureResult< T > |
| Class associated to measure results agregating a collection of values for each shape. More... | |
| class | ipsdk::shape::analysis::ValueMeasureResult< T > |
| Class associated to measure results agregating a single value for each shape. More... | |
Enumerations | |
| enum | ipsdk::shape::analysis::eMsrResultType { ipsdk::shape::analysis::eMRT_Value, ipsdk::shape::analysis::eMRT_Coll, ipsdk::shape::analysis::eMRT_Custom } |
| Enumerate describing measure measure result type. More... | |
Functions | |
| IPSDKBASESHAPEANALYSIS_API BoolResult | ipsdk::shape::analysis::saveCsvMeasureFile (const boost::filesystem::path &csvMeasureFilePath, const MeasureSet &measureSet, const eMsrResultCsvUnitFormat &msrResultCsvUnitFormat=eMsrResultCsvUnitFormat::eMRCUF_NextLine) |
| function allowing to save a measure result to csv file More... | |
| template<typename T > | |
| IPSDKBASESHAPEANALYSIS_API const std::vector< T > & | ipsdk::shape::analysis::extractValueResults (const MeasureConstPtr &pMeasure, const ipUInt64 cPlanIdx=0) |
| function allowing to extract measure results for measures associated to values More... | |
| template<typename T > | |
| IPSDKBASESHAPEANALYSIS_API const std::vector< std::vector< T > > & | ipsdk::shape::analysis::extractCollResults (const MeasureConstPtr &pMeasure, const ipUInt64 cPlanIdx=0) |
| function allowing to extract measure results for measures associated to collections More... | |
Measure result.
Each measure is associated to a collection of results (one by shape). Measure result can take several forms, each shape can indeed be associated to :
Some measures work on input image intensities to compute a result (see 'Intensity' category of Main measure type). In this case, if input image has multiple color channels (ie. an RGB or a multispectral input image), each channel will be associated to a measurement result.
Given a measure set (ipsdk::shape::analysis::MeasureSet) resulting from a shape analysis computation, the user can output associated measure results to a comma separator value file using function ipsdk::shape::analysis::saveCsvMeasureFile.
On the other hand, if a more detailed access to measure results is requested, the user can uses following functions :
These functions are redefined in python as follow :
Custom measure results will have to be acceded 'by hand' since associated result type is dedicated.
Enumerate describing measure measure result type.
| IPSDKBASESHAPEANALYSIS_API BoolResult ipsdk::shape::analysis::saveCsvMeasureFile | ( | const boost::filesystem::path & | csvMeasureFilePath, |
| const MeasureSet & | measureSet, | ||
| const eMsrResultCsvUnitFormat & | msrResultCsvUnitFormat = eMsrResultCsvUnitFormat::eMRCUF_NextLine |
||
| ) |
function allowing to save a measure result to csv file
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if measureSet.isProcessingStatus(eMsrProcessingStatus::eMPS_Ended) == false |
| IPSDKBASESHAPEANALYSIS_API const std::vector<T>& ipsdk::shape::analysis::extractValueResults | ( | const MeasureConstPtr & | pMeasure, |
| const ipUInt64 | cPlanIdx = 0 |
||
| ) |
function allowing to extract measure results for measures associated to values
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if pMeasure.get() == 0 |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if pMeasure->getMsrProcessingStatus() == eMsrProcessingStatus::eMPS_NotStarted |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if measure result is not of requested type |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if color plan index is not valid given measure |
| IPSDKBASESHAPEANALYSIS_API const std::vector<std::vector<T> >& ipsdk::shape::analysis::extractCollResults | ( | const MeasureConstPtr & | pMeasure, |
| const ipUInt64 | cPlanIdx = 0 |
||
| ) |
function allowing to extract measure results for measures associated to collections
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if pMeasure.get() == 0 |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if pMeasure->getMsrProcessingStatus() == eMsrProcessingStatus::eMPS_NotStarted |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if measure result is not of requested type |
| ipsdk::shape::analysis::IPSDKBaseShapeAnalysisException | if color plan index is not valid given measure |
1.8.14