Functions | |
| BOOL | CLRCLFDestroy (CLF clf) |
| This function destroys a classifier object. More... | |
| BOOL | CLRCLFGetFilterColor (CLF clf, long Index, double *RGB) |
| This function returns an individual colour for a given colour model which is displayed in the result image. More... | |
| DWORD | CLRCLFGetModelCount (CLF clf) |
| This function returns the number of models in the Colour classifier. More... | |
| BOOL | CLRCLFGetName (CLF clf, LPSTR name) |
| This function gets the name of a Colour classifier. More... | |
| BOOL | CLRCLFGetWhite (CLF clf, IMG &Image) |
| This function returns the white reference of a Colour classifier. More... | |
| BOOL | CLRCLFGetWhiteColor (CLF clf, double *RGB) |
| This function gets the white reference of a Colour classifier as a RGB colour value. More... | |
| BOOL | CLRCLFLoad (CLF &clf, const char *FileName) |
| This function loads a classifier clf from a given file. More... | |
| BOOL | CLRCLFSearchAll (CLF clf, IMG img, long PlaneIndex, const TArea &ar, long Density, BOOL UseCs, CR &result) |
| This function searches not only for the best fitting colour in the classifier but gives a quality to the distance to all colours in the classifier. More... | |
| BOOL | CLRCLFSearchOptimum (CLF clf, IMG img, long PlaneIndex, const TArea &ar, long Density, BOOL UseCs, PCLRResult result) |
| This function searches for the best fitting model to the area in the image using the classifier clf. More... | |
| BOOL | CLRCLFSetFilterColor (CLF clf, long Index, const double *RGB) |
| This function sets an individual colour which is displayed in the result image for a found colour. More... | |
| BOOL | CLRCLFSetWhite (CLF clf, IMG Image, const TArea *Area) |
| This function sets the white reference of a Colour classifier using an area in an image. More... | |
| BOOL | CLRCLFSetWhiteColor (CLF clf, const double *RGB) |
| This function sets the white reference of a Colour classifier as a RGB colour value. More... | |
| BOOL | CLRFLTDestroy (CFLT flt) |
| This function destroys a Colour filter object. More... | |
| BOOL | CLRFLTFilterImage (CFLT flt, IMG Src, IMG Dst, const TArea *DstArea) |
| This function filters the area of the input image using the Colour filter flt. More... | |
| BOOL | CLRFLTFilterImageEx (CFLT flt, IMG Src, IMG Dst, const TArea *DstArea, long Density, BOOL UseCs, long PlaneIndex) |
| This function filters the area of the input image using the Colour filter flt. More... | |
| BOOL | CLRFLTLoad (CFLT &cflt, const char *FileName) |
| This function loads a Colour filter object from a given filename. More... | |
| BOOL | CLRIsClf (CLF clf) |
| This function specifies whether clf is a valid Colour classifier object or not. More... | |
| BOOL | CLRIsFilter (CFLT cflt) |
| This function specifies whether a given clft value is a valid Colour filter object or not. More... | |
| BOOL | CLRIsSearchResult (CR clrresult) |
| This function specifies whether a given clrresult value is a valid Colour result list or not. More... | |
| BOOL | CLRSEARCHDestroy (CR csr) |
| This function destroys a Colour result list. More... | |
| long | CLRSEARCHGetNumResult (CR csr) |
| This function gets the number of entries in a result structure list CR (returned by CLRCLFSearchAll). More... | |
| BOOL | CLRSEARCHGetResult (CR csr, long index, PCLRResult result) |
| This function gets resulting colour in result at index from a list of result structures (returned by CLRCLFSearchAll). More... | |
| BOOL CLRCLFDestroy | ( | CLF | clf | ) |
| BOOL CLRCLFGetFilterColor | ( | CLF | clf, |
| long | Index, | ||
| double * | RGB | ||
| ) |
This function returns an individual colour for a given colour model which is displayed in the result image.
| [in] | clf | Handle to a Colour classifier object. |
| [in] | Index | Index of the colour model for which the destination colour should be retrieved. |
| [out] | RGB | Pointer to an array of three double values describing a colour in the RGB colour space. |
TRUE on success, FALSE otherwise. | DWORD CLRCLFGetModelCount | ( | CLF | clf | ) |
| BOOL CLRCLFGetName | ( | CLF | clf, |
| LPSTR | name | ||
| ) |
| BOOL CLRCLFGetWhite | ( | CLF | clf, |
| IMG & | Image | ||
| ) |
| BOOL CLRCLFGetWhiteColor | ( | CLF | clf, |
| double * | RGB | ||
| ) |
This function gets the white reference of a Colour classifier as a RGB colour value.
| [in] | clf | Handle to a Colour classifier object. |
| [out] | RGB | Pointer to an array of three double values describing a colour in the RGB colour space. |
TRUE on success, FALSE otherwise. | BOOL CLRCLFLoad | ( | CLF & | clf, |
| const char * | FileName | ||
| ) |
| BOOL CLRCLFSearchAll | ( | CLF | clf, |
| IMG | img, | ||
| long | PlaneIndex, | ||
| const TArea & | ar, | ||
| long | Density, | ||
| BOOL | UseCs, | ||
| CR & | result | ||
| ) |
This function searches not only for the best fitting colour in the classifier but gives a quality to the distance to all colours in the classifier.
This information can be used to determine for example how close the next colour is.
| [in] | clf | Handle to a Colour classifier object. |
| [in] | img | Handle to the source image with at least three dimensions. |
| [in] | PlaneIndex | Index of the first plane to use as the red plane. |
| [in] | ar | Area of interest to be processed. |
| [in] | Density | Density which is used to scan the image. |
| [in] | UseCs | Specifies whether the coordinate system of the image is used or not. |
| [out] | result | A pointer to a colour result object is returned. Use the Colour CLRSEARCHGetResult functions to access that object. |
TRUE on success, FALSE otherwise. | BOOL CLRCLFSearchOptimum | ( | CLF | clf, |
| IMG | img, | ||
| long | PlaneIndex, | ||
| const TArea & | ar, | ||
| long | Density, | ||
| BOOL | UseCs, | ||
| PCLRResult | result | ||
| ) |
This function searches for the best fitting model to the area in the image using the classifier clf.
| [in] | clf | Handle to a Colour classifier object. |
| [in] | img | Handle to the source image with at least three dimensions. |
| [in] | PlaneIndex | Index of the first plane to use as the red plane. |
| [in] | ar | Area of interest to be processed. |
| [in] | Density | Density which is used to scan the image. |
| [in] | UseCs | Specifies whether the coordinate system of the image is used or not. |
| [out] | result | A pointer to an allocated Colour result structure. See PCLRResult for more information. |
TRUE on success, FALSE otherwise. | BOOL CLRCLFSetFilterColor | ( | CLF | clf, |
| long | Index, | ||
| const double * | RGB | ||
| ) |
This function sets an individual colour which is displayed in the result image for a found colour.
| [in] | clf | Handle to a Colour classifier object. |
| [in] | Index | Index of the colour model for which the destination colour should be changed. |
| [in] | RGB | Pointer to an array of three double values describing a colour in the RGB colour space. |
TRUE on success, FALSE otherwise. | BOOL CLRCLFSetWhite | ( | CLF | clf, |
| IMG | Image, | ||
| const TArea * | Area | ||
| ) |
| BOOL CLRCLFSetWhiteColor | ( | CLF | clf, |
| const double * | RGB | ||
| ) |
This function sets the white reference of a Colour classifier as a RGB colour value.
| [in] | clf | Handle to a Colour classifier object. |
| [in] | RGB | Pointer to an array of three double values describing a colour in the RGB colour space. |
TRUE on success, FALSE otherwise. | BOOL CLRFLTDestroy | ( | CFLT | flt | ) |
| BOOL CLRFLTFilterImage | ( | CFLT | flt, |
| IMG | Src, | ||
| IMG | Dst, | ||
| const TArea * | DstArea | ||
| ) |
This function filters the area of the input image using the Colour filter flt.
| [in] | flt | Handle to the Colour filter object. |
| [in] | Src | Handle to the source image to be filtered. |
| [out] | Dst | Handle to the result image. |
| [in] | DstArea | Area of interest to use. |
TRUE on success, FALSE otherwise. | BOOL CLRFLTFilterImageEx | ( | CFLT | flt, |
| IMG | Src, | ||
| IMG | Dst, | ||
| const TArea * | DstArea, | ||
| long | Density, | ||
| BOOL | UseCs, | ||
| long | PlaneIndex | ||
| ) |
This function filters the area of the input image using the Colour filter flt.
| [in] | flt | Handle to the Colour filter object. |
| [in] | Src | Handle to the source image to be filtered. |
| [out] | Dst | Handle to the result image. |
| [in] | DstArea | Area of interest to use. |
| [in] | Density | Density which is used to scan the image. |
| [in] | UseCs | Specifies whether the coordinate system of the image is used or not. |
| [in] | PlaneIndex | Index of the first plane to use as the red plane. |
TRUE on success, FALSE otherwise. | BOOL CLRFLTLoad | ( | CFLT & | cflt, |
| const char * | FileName | ||
| ) |
| BOOL CLRIsClf | ( | CLF | clf | ) |
| BOOL CLRIsFilter | ( | CFLT | cflt | ) |
| BOOL CLRIsSearchResult | ( | CR | clrresult | ) |
This function specifies whether a given clrresult value is a valid Colour result list or not.
| [in] | clrresult | Handle to the Colour result list (returned by CLRCLFSearchAll). |
TRUE indicates that the given value is a valid Colour result list, FALSE otherwise. | BOOL CLRSEARCHDestroy | ( | CR | csr | ) |
| long CLRSEARCHGetNumResult | ( | CR | csr | ) |
This function gets the number of entries in a result structure list CR (returned by CLRCLFSearchAll).
| [in] | csr | Handle to the Colour result list (returned by CLRCLFSearchAll). |
0 on success (number of result colours), 0 if any error occurs. | BOOL CLRSEARCHGetResult | ( | CR | csr, |
| long | index, | ||
| PCLRResult | result | ||
| ) |
This function gets resulting colour in result at index from a list of result structures (returned by CLRCLFSearchAll).
| [in] | csr | Handle to the Colour result list (returned by CLRCLFSearchAll). |
| [in] | index | Index of the entry to get. |
| [out] | result | Pointer to an allocated result structure. See PCLRResult for more information. |
TRUE on success, FALSE otherwise.