Polimago regression predictor. More...
Inherits PredictorBaseEx.
Public Member Functions | |
| None | RegressionPredictor (self, str file_name) |
| Load a saved Polimago regression predictor from a file. | |
| List[float] | predict_vector (self, cvb.Image img, cvb.Point2D pos) |
| Calculate a regression result on a given location. | |
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. | |
Public Member Functions inherited from PolimagoFactoryCreatedObject | |
| None | save (self, str file_name) |
| Save this object into a file. | |
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. | |
Polimago regression predictor.
| None RegressionPredictor | ( | self, | |
| str | file_name ) |
Load a saved Polimago regression predictor from a file.
file_name : str Name of the file to be loaded.
| List[float] predict_vector | ( | self, | |
| cvb.Image | img, | ||
| cvb.Point2D | pos ) |
Calculate a regression result on a given location.
img : cvb.Image Image to calculate the result in.
pos : cvb.Point2D Position in the image referred to by img to be investigated.
List[float] List that represents the prediction results. The length of that list depends on the regression_dimension.