CVBpy 15.0
RegressionPredictor Class Reference

Polimago regression predictor. More...

Inherits PredictorBaseEx.

Public Member Functions

List[float] predict_vector (self, cvb.Image img, cvb.Point2D pos)
 Calculate a regression result on a given location. More...
 
- Public Member Functions inherited from PredictorBase
bool is_compatible (self, cvb.Image img, cvb.Point2D pos)
 Verify the compatibility of a CVB image with this classifier. More...
 
- Public Member Functions inherited from PolimagoFactoryCreatedObject
None save (self, str file_name)
 Save this object into a file. More...
 

Properties

 regression_dimension = property
 int: Regression result dimension.
 
- Properties inherited from PredictorBaseEx
 feature_resolution = property
 int: Feature resolution value with which the classifier was trained.
 
- Properties inherited from PolimagoFactoryCreatedObject
 correction = property
 cvb.Point2D: Correction factors in X and Y direction required to rescale the input images for projection onto the retina.
 
 feature_window_extent = property
 cvb.Rect: The feature window extent that has been used during classifier training.
 
 file_name = property
 str: Name of the file the object has been loaded from (or empty string if the object was not loaded).
 
 image_planes = property
 int: Intercept weight that has been used for generating this object.
 
 interpolation = property
 int: Interpolation setting used for generating this object (see cvb.polimago.InterpolationType).
 
 lambda_ = property
 float: Regularization value that has been used for generating this object.
 
 offset = property
 float: Intercept weight that has been used for generating this object.
 
 preprocessing = property
 str: Preprocessing code with which this object was generated.
 
 retina_size = property
 cvb.Size2D: Size of the 'Retina' in pixels. More...
 

Detailed Description

Polimago regression predictor.

Load a saved Polimago regression predictor from a file.

Parameters

file_name : str Name of the file to be loaded.

Member Function Documentation

◆ predict_vector()

List[float] predict_vector (   self,
cvb.Image  img,
cvb.Point2D  pos 
)

Calculate a regression result on a given location.

Parameters

img : cvb.Image Image to calculate the result in.

pos : cvb.Point2D Position in the image referred to by img to be investigated.

Returns

List[float] List that represents the prediction results. The length of that list depends on the regression_dimension.