![]() |
FLImaging 6.5.16.1
|
Class to find the moment for an image. More...
#include <Moment.h>
Classes | |
struct | SCentralMoment |
central moment structure More... | |
struct | SCentroid |
centroid moment structure More... | |
struct | SGeometricMoment |
geometric moment structure More... | |
struct | SHuMoment |
invariant moment structure More... | |
struct | SMoment |
moment structure More... | |
struct | SNormalizedCentralMoment |
normalized central moment structure More... | |
struct | SZernike |
Public Member Functions | |
CMoment () | |
CMoment (CMoment^ pMoment) | |
virtual | ~CMoment () |
virtual CResult ^ | Assign (CMoment^ pAib) |
virtual CResult ^ | EnableBinaryImage (bool bBinaryImage) |
virtual bool | IsBinaryImageEnabled () |
virtual CResult ^ | Execute () override |
virtual CResult ^ | Clear () override |
virtual CResult ^ | EnableGeometricMoment (bool bCalc) |
virtual bool | IsGeometricMomentEnabled () |
virtual CResult ^ | EnableCentroidMoment (bool bCalc) |
virtual bool | IsCentroidMomentEnabled () |
virtual CResult ^ | EnableCentralMoment (bool bCalc) |
virtual bool | IsCentralMomentEnabled () |
virtual CResult ^ | EnableNormalizedCentralMoment (bool bCalc) |
virtual bool | IsNormalizedCentralMomentEnabled () |
virtual CResult ^ | EnableHuMoment (bool bCalc) |
virtual bool | IsHuMomentEnabled () |
virtual CResult ^ | ClearZernike () |
virtual CResult ^ | AddZernike (int32_t i32N, int32_t i32M) |
virtual CResult ^ | AddZernike (int32_t i32N, int32_t i32M, uint64_t u64ZernikeRadius, bool bInscribedCircle) |
virtual CResult ^ | GetMoment (CLR_OUT CMoment::SMoment^% pMoments, int64_t i64Channel) |
virtual CResult ^ | GetMoment (CLR_OUT CMoment::SMoment^% pMoments) |
virtual int64_t | GetZernikeCount () |
virtual CResult ^ | GetZernike (CLR_OUT CMoment::SZernike^% pZernike, int64_t i64Index, int64_t i64Channel) |
virtual CResult ^ | GetZernike (CLR_OUT CMoment::SZernike^% pZernike, int64_t i64Index) |
virtual CResult ^ | ReportToCSV (Foundation::CReportDescriptor^ pWrd) override |
The execution result of the algorithm is recorded in a file according to the options recorded in the ReportDescriptor object. Not all algorithms support this function. If not supported, return EResult.DidNotImplement . | |
virtual CResult ^ | ReportToCSV (ImageProcessing::CReportDescriptorForMoment^ pWrd) |
![]() | |
virtual CResult ^ | Assign (CAlgorithmFeature_SR^ pAib) |
virtual CResult ^ | SetSourceROI (Foundation::CFLFigure^ pFlfSourceROI) |
virtual Foundation::CFLFigure ^ | GetSourceROI () |
![]() | |
virtual | ~CAlgorithmFeatureBase () |
virtual CResult ^ | SetSourceImage (Base::CFLImage^% pFliSource) |
virtual Base::CFLImage ^ | GetSourceImage () |
virtual void | SetROIUtilities (CROIUtilities^ pROIUtilities) |
virtual void | SetROIUtilities (CAlgorithmFeatureBase^ pAlgorithmFeatureBase) |
virtual CROIUtilities ^ | GetROIUtilities () |
virtual CResult ^ | Assign (CAlgorithmFeatureBase^ pAlgorithmFeatureBase) |
virtual double | GetLastExecutionTimeInMilliSecond () |
virtual double | GetLastExecutionTimeInMicroSecond () |
virtual CResult ^ | EnableThreadSynchronization (bool bEnable) |
virtual bool | IsThreadSynchronizationEnabled () |
virtual CResult ^ | EnableImageFigureTransformation (bool bEnable) |
virtual bool | IsImageFigureTransformationEnabled () |
virtual int64_t | GetRequiredGPUMemory () override |
virtual bool | IsLicenseAvailable () |
Returns whether the license is available. | |
![]() | |
virtual | ~CAlgorithmBase () |
virtual CResult ^ | Assign (CAlgorithmBase^ pPufb) |
virtual EProcessingUnitFeatures | GetOptimalProcessingUnit () |
virtual int32_t | GetOptimalThreadCount () |
![]() | |
virtual | ~CFLBase () |
Destructor. | |
!CFLBase () | |
Destructor. | |
virtual CProcessingUnitBase ^ | GetProcessingUnit () |
Returns the set ProcessingUnit. | |
virtual CResult ^ | SetProcessingUnit (CProcessingUnitBase^ pPub) |
set the ProcessingUnit | |
virtual void | ResetProcessingUnit () |
Rest the ProcessingUnit. | |
virtual bool | IsValid () |
Validate the object. | |
virtual void | OnReceiveBroadcast (CBroadcastMessage^ pMessage) |
Callback function. A function that receives a BroadcastMessage. | |
void | Lock () |
Set a lock on an object. | |
bool | TryLock () |
Try to lock the object. | |
void | Unlock () |
Unlock the object. | |
virtual CFLBase ^ | DuplicateObject () |
Duplicate an object identical to itself. | |
virtual CFLBase ^ | CreateNewObject () |
Creating an object of the same type as oneself. | |
Static Public Member Functions | |
static CResult ^ | GetContoursMatchL1 (CMoment::SHuMoment^ pSHuMoment1, CMoment::SHuMoment^ pSHuMoment2, CLR_OUT double% f64Result) |
static CResult ^ | GetContoursMatchL2 (CMoment::SHuMoment^ pSHuMoment1, CMoment::SHuMoment^ pSHuMoment2, CLR_OUT double% f64Result) |
static CResult ^ | GetContoursMatchL3 (CMoment::SHuMoment^ pSHuMoment1, CMoment::SHuMoment^ pSHuMoment2, CLR_OUT double% f64Result) |
Class to find the moment for an image.
The algorithm can represent unique properties of objects, such as geometric features or specific weighted averages of the intensities of pixels in the source image.
There are six image moments supported: geometric moment, centroid moment, central moment, normalized central moment, invariant moment (or Hu moment), and Zernike moment.
In addition, it supports three contour matching values, L1, L2, and L3, which are numbers that can identify the shape relationship between two objects using invariant moments.
If you want to extract a geometrical feature of an object to obtain a moment value for a shape rather than a pixel value, set the binary property. there is.
The result can be obtained by executing the algorithm by setting the moments the user wants to find, and if there is a moment that must be calculated to obtain the set moment, it is calculated and returned.
FLImagingCLR::ImageProcessing::CMoment::CMoment | ( | ) |
Default constructor
FLImagingCLR::ImageProcessing::CMoment::CMoment | ( | CMoment^ | pMoment | ) |
Copy constructor by pointer
|
virtual |
Destructor
|
virtual |
Set the parameters of the Zernike Moment you want to calculate.
[in] | i32N | Zernike N |
[in] | i32M | Zernike M |
FLImagingCLR::CResult^ | Information about execution results |
If you want to get multiple Zernike Moments, they are added the AddZernike function is executed.
|
virtual |
Set the parameters of the Zernike Moment you want to calculate.
[in] | i32N | Zernike N |
[in] | i32M | Zernike M |
[in] | u64ZernikeRadius | Zernike Radius |
[in] | bInscribedCircle | Whether or not to use inscribed and circumscribed circles |
FLImagingCLR::CResult^ | Information about execution results |
If you want to get multiple Zernike Moments, they are added the AddZernike function is executed.
Assign another CMoment object.
[in] | pAib | Pointer of CMoment |
FLImagingCLR::CResult^ | Information about execution results |
|
overridevirtual |
Initialize algorithm parameters.
FLImagingCLR::CResult^ | Information about execution results |
Reimplemented from FLImagingCLR::ImageProcessing::CAlgorithmFeature_SR.
|
virtual |
Clear the parameters of the set Zernike Moment.
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Set whether the source image is binarized.
[in] | bBinaryImage | Whether the source image is binarized |
FLImagingCLR::CResult^ | Information about execution results |
bBinaryImage = true : If the pixel value of the image is 0, it is regarded as 0, and if the pixel value of the image is not 0, the pixel value is regarded as 1.
bBinaryImage = false : The pixel values of the image are used as they are.
|
virtual |
Set whether or not to calculate central moment.
[in] | bCalc | whether or not to calculate central moment |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Set whether or not to calculate centroid moment.
[in] | bCalc | whether or not to calculate centroid moment |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Set whether or not to calculate geometric moment.
[in] | bCalc | whether or not to calculate geometric moment |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Set whether to calculate the invariant moment.
[in] | bCalc | whether to calculate the invariant moment |
FLImagingCLR::CResult | Information about execution results |
|
virtual |
Set whether or not to calculate the normalized central moment.
[in] | bCalc | whether or not to calculate the normalized central moment |
FLImagingCLR::CResult | Information about execution results |
|
overridevirtual |
Execute the Algorithm.
FLImagingCLR::CResult^ | Information about execution results |
Reimplemented from FLImagingCLR::Foundation::CAlgorithmFeatureBase.
|
static |
Get the L1 contour matching value using invariant moment.
[in] | pSHuMoment1 | precomputed constant moment |
[in] | pSHuMoment2 | precomputed constant moment |
[out] | f64Result | L1 value |
FLImagingCLR::CResult^ | Information about execution results |
|
static |
Get the L2 contour matching value using invariant moment.
[in] | pSHuMoment1 | precomputed constant moment |
[in] | pSHuMoment2 | precomputed constant moment |
[out] | f64Result | L2 value |
FLImagingCLR::CResult^ | Information about execution results |
|
static |
Get the L3 contour matching value using invariant moment.
[in] | pSHuMoment1 | precomputed constant moment |
[in] | pSHuMoment2 | precomputed constant moment |
[out] | f64Result | L3 value |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Get the calculated moments.
[out] | pMoments | calculated moment |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Get the calculated moments.
[out] | pMoments | calculated moment |
[in] | i64Channel | channel |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Get the calculated zernike moments.
[out] | pZernike | calculated zernike moments |
[in] | i64Index | index |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Get the calculated zernike moments.
[out] | pZernike | calculated zernike moments |
[in] | i64Index | index |
[in] | i64Channel | channel |
FLImagingCLR::CResult^ | Information about execution results |
|
virtual |
Get the total number of calculated zernike moments.
int64_t | Total number of calculated zernike moments |
|
virtual |
Get whether the source image is binarized.
bool | Whether the source image is binarized |
|
virtual |
Get whether or not to calculate central moment.
bool | whether or not to calculate central moment |
|
virtual |
Get whether or not to calculate centroid moment.
bool | whether or not to calculate centroid moment |
|
virtual |
Get whether or not to calculate geometric moment.
bool | whether or not to calculate geometric moment |
|
virtual |
Get whether to calculate the invariant moment.
bool | whether to calculate the invariant moment |
|
virtual |
Get whether or not to calculate the normalized central moment.
bool | whether or not to calculate the normalized central moment |
|
overridevirtual |
The execution result of the algorithm is recorded in a file according to the options recorded in the ReportDescriptor object. Not all algorithms support this function. If not supported, return EResult.DidNotImplement
.
[in] | pWrd | ReportDescriptor object |
FLImagingCLR::CResult^ | Information about execution results |
Reimplemented from FLImagingCLR::Foundation::CAlgorithmFeatureBase.
|
virtual |
The execution result of the algorithm is written to a file according to the options recorded in the CReportDescriptorForMoment object. Not all algorithms support this function. If not supported, return EResult.DidNotImplement
.
[in] | pWrd | ReportDescriptor object |
FLImagingCLR::CResult^ | Function execution result (return EResult.OK on success) |