Глава 15. Системные функции

Материал из roboforum.ru Wiki
Перейти к: навигация, поиск

15. Системные функции

This chapter describes system library functions.

Эта глава описывает системные функции библиотеки OpenCV.

Table 15-1 System Library Functions

Таблица 15-1. Системные функции библиотеки

Имя Описание
LoadPrimitives Loads versions of functions that are optimized for a specific platform.

Загрузка версий функций, оптимизированных для конкретной платформы.

GetLibraryInfo Retrieves information about the library.

Возвращает информацию о библиотеке.

LoadPrimitives
Loads optimized versions of functions for specific platform.

Загрузка оптимизированных версий функций для конкретной платформы.

int cvLoadPrimitives (char* dllName, char* processorType);
dllName Name of dynamically linked library with out postfix that contains the optimized versions of functions.

Имя DLL-ки которая содержит оптимизированные версии, согласно выбранного Постфикса.

processorType Postfix that specifies the platform type:

"W7" for Pentium® 4 processor,

"A6" for Intel® Pentium® II processor,

"M6" for Intel® Pentium® II processor,

NULL for autodetection of the platform type.

Постфикс, который определяет тип платформы:

"W7" для процессора Pentium® 4,

"A6" для процессора Intel® Pentium® III,

"M6" для процессора Intel® Pentium® II,

NULL для автоматического определения типа платформы.

Описание The function LoadPrimitives loads the versions of functions that are optimized for a

specific platform. The function is atomatically called before the first call to the library function, if not called earlier.

Функция LoadPrimitives загружает версии функций, оптимизированные для конкретной платформы. Эта функция вызывается автоматически перед первым вызовом функции библиотеки, если не вызывали раньше.

GetLibraryInfo
Gets the library information string.

Возвращает строку с информацией о библиотеке.

void cvGetLibraryInfo (char** version, int* loaded, char** dllName);
version Pointer to the string that will receive the build date information; can be NULL.

Указатель на строку, в которую будет записана полученная актуальная информация, может быть NULL.

loaded Postfix that specifies the platform type:

"W7" for Pentium® 4 processor,

"A6" for Intel® Pentium® II processor,

"M6" for Intel® Pentium® II processor,

NULL for autodetection of the platform type.

Постфикс, который определяет тип платформы:

"W7" для процессора Pentium® 4,

"A6" для процессора Intel® Pentium® III,

"M6" для процессора Intel® Pentium® II,

NULL для автоматического определения типа платформы.

dllName Pointer to the full name of dynamically linked library without path, could be NULL.

Указатель на полное имя DLL-ки с учетом пути, может быть NULL.

Описание The function GetLibraryInfo retrieves information about the library: the build date,

the flag that indicates whether optimized DLLs have beenloaded or not, and their names, if loaded.

Функция GetLibraryInfo возвращает информацию о библиотеке: дата создания и флаг, который указывает, оптимизированные DLL-ки были загружены или нет, и их имена, если они загружены.

Конец Главы 15