Predictor to classify patterns with. More...
Inherits PredictorBaseEx.
Public Member Functions | |
ClassificationPredictor (string fileName) | |
Load a saved Polimago classification classifier from a file. | |
ClassificationResult | Classify (Image img, Point2D pos) |
Classify a location inside an image. | |
unsafe ClassificationResult | Classify (Image img, Point2D pos, out double[] confidences) |
Classify a location inside an image. | |
![]() | |
bool | IsCompatible (Image img, Point2D pos) |
Verify the compatibility of a CVB image with this classifier. | |
bool | IsCompatible (Image img) |
Verify the compatibility of a CVB image with this classifier. | |
![]() | |
void | Save (string fileName) |
Save this object into a file. | |
![]() | |
virtual void | Dispose () |
IDisposable implementation. | |
Properties | |
ReadOnlyCollection< string > | Classes [get] |
Class labels available in this predictor. | |
ClassificationType | Classification [get] |
Retrieve the classification type for which this classifier has been generated. | |
int | OutputDimension [get] |
Dimension of results generated by this predictor. | |
int | NumClasses [get] |
Number of classes a classification predictor has been trained for. | |
![]() | |
int | FeatureResolution [get] |
Feature resolution value with which the classifier was trained. | |
![]() | |
string | FileName [get, protected set] |
Name of the file the object has been loaded from (or. | |
double | Lambda [get] |
Regularization value that has been used for generating this object. | |
double | Offset [get] |
Intercept weight that has been used for generating this object. | |
InterpolationType | Interpolation [get] |
Interpolation setting used for generating this object. | |
int | ImagePlanes [get] |
The plane count of the images that have been used for generating this classifier. Image on which this classifier is to be used will need to have the same plane count. | |
Rect | FeatureWindowExtent [get] |
The feature window extent that has been used during classifier training. | |
Size2D | RetinaSize [get] |
Size of the "Retina" in paxels. The retina is the set of paxels onto which the input image is projected using the preprocessing code prior to application/training of the classifier. | |
Point2Dd | Correction [get] |
Correction factors in X and Y direction required to rescale the input images for projection onto the retina. | |
string | Preprocessing [get] |
Preprocessing code with which this object was generated. | |
![]() | |
IntPtr | Handle [get] |
Native Manto classifier handle. | |
bool | IsDisposed [get] |
Tests if the native handle has already been disposed. | |
Additional Inherited Members | |
![]() | |
static int | GetGranularity (string preproCode) |
The function returns the granularity (see tutorial) associated with a preprocessing code. | |
![]() | |
void | VerifyCompatibility (Image img) |
Verify the compatibility of a CVB image with this classifier. | |
void | VerifyCompatibility (Image img, Point2D pos) |
Verify the compatibility of a CVB image with this classifier. | |
![]() | |
virtual void | Dispose (bool disposing) |
IDispose helper function. | |
![]() | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
![]() | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. | |
Predictor to classify patterns with.
ClassificationPredictor | ( | string | fileName | ) |
Load a saved Polimago classification classifier from a file.
fileName | name of the file to be loaded |
FileNotFoundException | If the classifier file does not exist |
FileLoadException | If loading an existing classifier file failed |
ArgumentNullException | If fileName is null |
ClassificationResult Classify | ( | Image | img, |
Point2D | pos ) |
Classify a location inside an image.
img | Image to classify in. |
pos | Position to classify. |
unsafe ClassificationResult Classify | ( | Image | img, |
Point2D | pos, | ||
out double[] | confidences ) |
Classify a location inside an image.
confidences | Confidence distribution. |
img | Image to classify in. |
pos | Position to classify. |
We use cookies to improve your experience. By using this documentation, you agree to our use of cookies.