Minos classifier object. More...
Inherits INativeHandle.
Classes | |
struct | ModelInformation |
Information about a Minos classifier model. More... | |
class | ModelInformationCollection |
Collection of model informations. More... | |
Public Member Functions | |
Classifier (string fileName) | |
Load a saved classifier from a file. More... | |
Classifier (byte[] buffer) | |
Recreate a serialized Minos classifier from a byte array. More... | |
Classifier (byte[] buffer, int offset, int size) | |
Recreate a serialized Minos classifier from a byte array. More... | |
void | Dispose () |
IDisposable implementation. More... | |
void | Save (string fileName) |
Write the classifier to a file. More... | |
Classifier | Transform (Matrix2D transformation) |
Generate a new classifier by transforming this classifier with a 2x2 transformation matrix. More... | |
unsafe string | Read (ImagePlane plane, ReadMode mode, Area2D startAOI, double density, Area2D ocrAOI, out SearchResult startOrStop) |
Reads a string of characters, using the following approach:
The whole process will be repeated until no more results are encountered. String of up to 32k characters are read. More... | |
SearchResult[] | Read (ImagePlane plane, Area2D startAOI, double density, Area2D ocrAOI) |
Reads a list of characters, using the following approach:
The whole process will be repeated until no more results are encountered. String of up to 32k characters are read. More... | |
unsafe SearchResult | Search (ImagePlane plane, SearchMode mode, Area2D aoi, double density) |
Search one object using this Minos classifier. More... | |
SearchResult | Search (ImagePlane plane, SearchMode mode, double density) |
Search one object using this Minos classifier. More... | |
SearchResult | Search (ImagePlane plane, SearchMode mode) |
Search one object using this Minos classifier. More... | |
SearchResult[] | SearchAll (ImagePlane plane, Area2D aoi, double density, int locality) |
Search all objects using this Minos classifier More... | |
SearchResult[] | SearchAll (ImagePlane plane, double density, int locality) |
Overloaded SearchAll function (re-routes with default arguments for area) More... | |
SearchResult[] | SearchAll (ImagePlane plane, int locality) |
Overloaded SearchAll function (re-routes with default arguments for area and density) More... | |
Protected Member Functions | |
virtual void | Dispose (bool disposing) |
IDispose helper function. More... | |
Properties | |
IntPtr | Handle [get] |
Native Minos classifier handle. More... | |
string | FileName [get] |
Name of the file from which this classifier was loaded (string.Empty if this image list was neither loaded nor saved since its construction). More... | |
ModelInformationCollection | Models [get] |
Collection of the models contained in this classifier. More... | |
bool | IsDisposed [get] |
Tests if the native handle has already been disposed. | |
bool | IsMinos16BitClassifier [get] |
returns true if the classifier was generated by Minos16Bit More... | |
int | ContrastTrigger [get, set] |
Trigger value for the contrast of features to be taken into account. More... | |
double | Threshold [get, set] |
Threshold for search operations witz normalized quality feedback. More... | |
QualityFeedback | QualityMeasure [get, set] |
Selects the type of quality feedback from the classifier. More... | |
Rect | Extent [get] |
Extent of the classes in the classifier relative to the anchor point. More... | |
unsafe string | TrainingSetName [get] |
Name of the training set from which this classifier was generated. More... | |
DateTime | CreationDate [get] |
Creation date of the classifier. More... | |
LearnParameters | LearnParameters [get] |
Gets the set of parameters that has been used during classifier generation. More... | |
unsafe string | Comment [get, set] |
Comment assigned to the classifier at generation time More... | |
Properties inherited from INativeHandle | |
IntPtr | Handle [get] |
The native handle of the object. | |
bool | IsDisposed [get] |
Possibility to check whether the object has already been disposed of. | |
Events | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Events inherited from INativeHandle | |
NativeHandleEventDelegate | ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method. More... | |
Minos classifier object.
Classifier | ( | string | fileName | ) |
Load a saved 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 |
Classifier | ( | byte[] | buffer | ) |
Recreate a serialized Minos classifier from a byte array.
buffer | byte array from which to create the classifier. |
Classifier | ( | byte[] | buffer, |
int | offset, | ||
int | size | ||
) |
Recreate a serialized Minos classifier from a byte array.
buffer | Byte array from which to create the classifier |
offset | offset at which to start |
size | number of bytes to use |
ArgumentNullException | If buffer is null |
ArgumentException | If offset is less than zero or size is less than zero |
ArgumentOutOfRangeException | If offset and size have values that together exceed the length of buffer |
InvalidDataException | If buffer does not contain a deserializable Minos classifier at the given offset. |
void Dispose | ( | ) |
IDisposable implementation.
Call this method to release the resources allocated by this object immediately. Remember that after calling Dispose, any subsequent access to references to this object will result in an ObjectDisposedException.
|
protectedvirtual |
IDispose helper function.
disposing | true when called via IDisposable.Dispose, false when called by the finalizer. |
SearchResult[] Read | ( | ImagePlane | plane, |
Area2D | startAOI, | ||
double | density, | ||
Area2D | ocrAOI | ||
) |
Reads a list of characters, using the following approach:
The whole process will be repeated until no more results are encountered. String of up to 32k characters are read.
plane | image plane to read on |
startAOI | area in which to start the read operation |
density | density to be used for the read operation |
ocrAOI | area to be used for the intermediate read steps; this area will be applied relative to the expected position of the next character and is typically only a few pixels wide and high |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If density is either less than 0 or greater than 1 |
ObjectDisposedException | If the classifier or the image it should work on has already been disposed |
unsafe string Read | ( | ImagePlane | plane, |
ReadMode | mode, | ||
Area2D | startAOI, | ||
double | density, | ||
Area2D | ocrAOI, | ||
out SearchResult | startOrStop | ||
) |
Reads a string of characters, using the following approach:
The whole process will be repeated until no more results are encountered. String of up to 32k characters are read.
plane | image plane to read on |
mode | read mode |
startAOI | area in which to start the read operation |
density | density to be used for the read operation |
ocrAOI | area to be used for the intermediate read steps; this area will be applied relative to the expected position of the next character and is typically only a few pixels wide and high |
startOrStop | first or last character that has been read (depending on the value of the mode parameter) |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If if density is either less than 0 or greater than 1 |
ObjectDisposedException | If the classifier or the image it should work on has already been disposed |
void Save | ( | string | fileName | ) |
Write the classifier to a file.
fileName |
ObjectDisposedException | If the classifier has already been disposed |
ArgumentNullException | when fileName is null |
SearchResult Search | ( | ImagePlane | plane, |
SearchMode | mode | ||
) |
Search one object using this Minos classifier.
plane | image plane to search on |
mode | search mode to be used |
ArgumentNullException | If the Parent of plane is null |
ObjectDisposedException | If the classifier or the Image it should be used on has already been disposed |
unsafe SearchResult Search | ( | ImagePlane | plane, |
SearchMode | mode, | ||
Area2D | aoi, | ||
double | density | ||
) |
Search one object using this Minos classifier.
plane | image plane to search on |
mode | search mode to be used |
aoi | area to search in |
density | density at which to search ([0...1]) |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If density is either less than 0 or greater than 1 |
ObjectDisposedException | If the classifier or the image it should be used on has already been disposed |
SearchResult Search | ( | ImagePlane | plane, |
SearchMode | mode, | ||
double | density | ||
) |
Search one object using this Minos classifier.
plane | image plane to search on |
mode | search mode to be used |
density | density at which to search ([0...1]) |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If density is either less than 0 or greater than 1 |
ObjectDisposedException | If the classifier has already been disposed |
SearchResult[] SearchAll | ( | ImagePlane | plane, |
Area2D | aoi, | ||
double | density, | ||
int | locality | ||
) |
Search all objects using this Minos classifier
plane | image plane to search on |
aoi | Area to search in |
density | density at which to search ([0...1]) |
locality | Radius within which no better solution may exist |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If plane is either less than 0 or greater than the number of planes minus 1, or if density is either less than 0 or greater than 1 or if locality is less than 0 |
ObjectDisposedException | If the classifier has already been disposed |
SearchResult[] SearchAll | ( | ImagePlane | plane, |
double | density, | ||
int | locality | ||
) |
Overloaded SearchAll function (re-routes with default arguments for area)
plane | image plane to search in |
density | density with which to search |
locality | minimum distance between results |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If density is either less than 0 or greater than 1 or if locality is less than 0 |
ObjectDisposedException | If the classifier or the Image it should be used on has already been disposed |
SearchResult[] SearchAll | ( | ImagePlane | plane, |
int | locality | ||
) |
Overloaded SearchAll function (re-routes with default arguments for area and density)
plane | Image plane to search in |
locality | minimum distance between results |
ArgumentNullException | If the Parent of plane is null |
ArgumentOutOfRangeException | If locality is less than 0 |
ObjectDisposedException | If the classifier has already been disposed |
Classifier Transform | ( | Matrix2D | transformation | ) |
Generate a new classifier by transforming this classifier with a 2x2 transformation matrix.
transformation | matrix with which to transform the geometry of this classifier |
ObjectDisposedException | If the classifier has already been disposed |
DivideByZeroException | when providing a transformation matrix that is singular. |
|
getset |
Comment assigned to the classifier at generation time
ObjectDisposedException | If the classifier has already been disposed |
|
getset |
Trigger value for the contrast of features to be taken into account.
ObjectDisposedException | If the classifier has already been disposed |
ArgumentException | when trying to set an invalid trigger value |
|
get |
Creation date of the classifier.
ObjectDisposedException | If the classifier has already been disposed |
|
get |
Extent of the classes in the classifier relative to the anchor point.
ObjectDisposedException | If the classifier has already been disposed |
|
get |
Name of the file from which this classifier was loaded (string.Empty if this image list was neither loaded nor saved since its construction).
ObjectDisposedException | If the classifier has already been disposed |
|
get |
Native Minos classifier handle.
It is normally not necessary to work with this handle in CVB.Net. Note that using this handle in connection with the legacy CVB managed wrappers may actually be disruptive to your application.
Implements INativeHandle.
|
get |
returns true if the classifier was generated by Minos16Bit
ObjectDisposedException | If the classifier has already been disposed |
Gets the set of parameters that has been used during classifier generation.
ObjectDisposedException | If the classifier has already been disposed |
|
get |
Collection of the models contained in this classifier.
ObjectDisposedException | If the classifier has already been disposed |
|
getset |
Selects the type of quality feedback from the classifier.
ObjectDisposedException | If the classifier has already been disposed |
|
getset |
Threshold for search operations witz normalized quality feedback.
ObjectDisposedException | If the classifier has already been disposed |
ArgumentOutOfRangeException | when trying to set a value less than 0.0 or greater than 1.0 |
|
get |
Name of the training set from which this classifier was generated.
ObjectDisposedException | If the classifier has already been disposed |
NativeHandleEventDelegate ObjectDisposing |
Raised when this object is about to be disposed via the IDisposable.Dispose method.
This event is raised right before this object is disposed. The dispose itself cannot be canceled.