[][src]Trait opencv::core::Algorithm

pub trait Algorithm {
    fn as_raw_Algorithm(&self) -> *mut c_void;

    fn clear(&mut self) -> Result<()> { ... }
fn empty(&self) -> Result<bool> { ... }
fn save(&self, filename: &str) -> Result<()> { ... }
fn get_default_name(&self) -> Result<String> { ... } }

This is a base class for all more or less complex algorithms in OpenCV

especially for classes of algorithms, for which there can be multiple implementations. The examples are stereo correspondence (for which there are algorithms like block matching, semi-global block matching, graph-cut etc.), background subtraction (which can be done using mixture-of-gaussians models, codebook-based algorithm etc.), optical flow (block matching, Lucas-Kanade, Horn-Schunck etc.).

Here is example of SimpleBlobDetector use in your application via Algorithm interface: @snippet snippets/core_various.cpp Algorithm

Required methods

Loading content...

Provided methods

fn clear(&mut self) -> Result<()>

Clears the algorithm state

fn empty(&self) -> Result<bool>

Returns true if the Algorithm is empty (e.g. in the very beginning or after unsuccessful read

fn save(&self, filename: &str) -> Result<()>

Saves the algorithm to a file. In order to make this method work, the derived class must implement Algorithm::write(FileStorage& fs).

fn get_default_name(&self) -> Result<String>

Returns the algorithm string identifier. This string is used as top level xml/yml node tag when the object is saved to a file or string.

Loading content...

Implementors

impl Algorithm for CustomPattern[src]

impl Algorithm for ConjGradSolver[src]

impl Algorithm for AbsLayer[src]

impl Algorithm for BNLLLayer[src]

impl Algorithm for BatchNormLayer[src]

impl Algorithm for BlankLayer[src]

impl Algorithm for ChannelsPReLULayer[src]

impl Algorithm for ConcatLayer[src]

impl Algorithm for ConstLayer[src]

impl Algorithm for ConvolutionLayer[src]

impl Algorithm for CropAndResizeLayer[src]

impl Algorithm for CropLayer[src]

impl Algorithm for DeconvolutionLayer[src]

impl Algorithm for DetectionOutputLayer[src]

impl Algorithm for ELULayer[src]

impl Algorithm for EltwiseLayer[src]

impl Algorithm for FlattenLayer[src]

impl Algorithm for InnerProductLayer[src]

impl Algorithm for InterpLayer[src]

impl Algorithm for LRNLayer[src]

impl Algorithm for MVNLayer[src]

impl Algorithm for MaxUnpoolLayer[src]

impl Algorithm for NormalizeBBoxLayer[src]

impl Algorithm for PaddingLayer[src]

impl Algorithm for PermuteLayer[src]

impl Algorithm for PoolingLayer[src]

impl Algorithm for PowerLayer[src]

impl Algorithm for PriorBoxLayer[src]

impl Algorithm for ProposalLayer[src]

impl Algorithm for ReLU6Layer[src]

impl Algorithm for ReLULayer[src]

impl Algorithm for RegionLayer[src]

impl Algorithm for ReorgLayer[src]

impl Algorithm for ReshapeLayer[src]

impl Algorithm for ResizeLayer[src]

impl Algorithm for ScaleLayer[src]

impl Algorithm for ShiftLayer[src]

impl Algorithm for ShuffleChannelLayer[src]

impl Algorithm for SigmoidLayer[src]

impl Algorithm for SliceLayer[src]

impl Algorithm for SoftmaxLayer[src]

impl Algorithm for SplitLayer[src]

impl Algorithm for TanHLayer[src]

impl Algorithm for BFMatcher[src]

impl Algorithm for BRISK[src]

impl Algorithm for FlannBasedMatcher[src]

impl Algorithm for SimpleBlobDetector[src]

impl Algorithm for AverageHash[src]

impl Algorithm for BlockMeanHash[src]

impl Algorithm for ColorMomentHash[src]

impl Algorithm for MarrHildrethHash[src]

impl Algorithm for PHash[src]

impl Algorithm for RadialVarianceHash[src]

impl Algorithm for ChiHistogramCostExtractor[src]

impl Algorithm for EMDL1HistogramCostExtractor[src]

impl Algorithm for PtrOfAKAZE[src]

impl Algorithm for PtrOfANN_MLP[src]

impl Algorithm for PtrOfActivationLayer[src]

impl Algorithm for PtrOfAffineTransformer[src]

impl Algorithm for PtrOfAgastFeatureDetector[src]

impl Algorithm for PtrOfAlignMTB[src]

impl Algorithm for PtrOfBackgroundSubtractorKNN[src]

impl Algorithm for PtrOfBackgroundSubtractorMOG2[src]

impl Algorithm for PtrOfBaseConvolutionLayer[src]

impl Algorithm for PtrOfBoost[src]

impl Algorithm for PtrOfCLAHE[src]

impl Algorithm for PtrOfCalibrateDebevec[src]

impl Algorithm for PtrOfCalibrateRobertson[src]

impl Algorithm for PtrOfDTrees[src]

impl Algorithm for PtrOfDescriptorMatcher[src]

impl Algorithm for PtrOfDownhillSolver[src]

impl Algorithm for PtrOfDualTVL1OpticalFlow[src]

impl Algorithm for PtrOfEM[src]

impl Algorithm for PtrOfFarnebackOpticalFlow[src]

impl Algorithm for PtrOfFastFeatureDetector[src]

impl Algorithm for PtrOfFeature2D[src]

impl Algorithm for PtrOfFreeType2[src]

impl Algorithm for PtrOfGFTTDetector[src]

impl Algorithm for PtrOfGeneralizedHoughBallard[src]

impl Algorithm for PtrOfGeneralizedHoughGuil[src]

impl Algorithm for PtrOfHausdorffDistanceExtractor[src]

impl Algorithm for PtrOfHistogramCostExtractor[src]

impl Algorithm for PtrOfHistogramPhaseUnwrapping[src]

impl Algorithm for PtrOfKAZE[src]

impl Algorithm for PtrOfKNearest[src]

impl Algorithm for PtrOfKernel[src]

impl Algorithm for PtrOfLSTMLayer[src]

impl Algorithm for PtrOfLineSegmentDetector[src]

impl Algorithm for PtrOfLogisticRegression[src]

impl Algorithm for PtrOfMSER[src]

impl Algorithm for PtrOfMergeDebevec[src]

impl Algorithm for PtrOfMergeMertens[src]

impl Algorithm for PtrOfMergeRobertson[src]

impl Algorithm for PtrOfNormalBayesClassifier[src]

impl Algorithm for PtrOfORB[src]

impl Algorithm for PtrOfPlot2d[src]

impl Algorithm for PtrOfRNNLayer[src]

impl Algorithm for PtrOfRTrees[src]

impl Algorithm for PtrOfRetina[src]

impl Algorithm for PtrOfRetinaFastToneMapping[src]

impl Algorithm for PtrOfSVM[src]

impl Algorithm for PtrOfSVMSGD[src]

impl Algorithm for PtrOfShapeContextDistanceExtractor[src]

impl Algorithm for PtrOfSparsePyrLKOpticalFlow[src]

impl Algorithm for PtrOfStereoBM[src]

impl Algorithm for PtrOfStereoSGBM[src]

impl Algorithm for PtrOfSuperResolution[src]

impl Algorithm for PtrOfThinPlateSplineShapeTransformer[src]

impl Algorithm for PtrOfTonemap[src]

impl Algorithm for PtrOfTonemapDrago[src]

impl Algorithm for PtrOfTonemapMantiuk[src]

impl Algorithm for PtrOfTonemapReinhard[src]

impl Algorithm for PtrOfTransientAreasSegmentationModule[src]

Loading content...