14.1. Функции изображения — различия между версиями
Zeus (обсуждение | вклад) |
Zeus (обсуждение | вклад) |
||
| (не показаны 2 промежуточные версии этого же участника) | |||
| Строка 21: | Строка 21: | ||
| Описание | | Описание | ||
| The function CreateImageHeader allocates, initializes, and returns the structure | | The function CreateImageHeader allocates, initializes, and returns the structure | ||
| − | ''IplImage''. This call is a shortened form of <br />Функция CreateImageHeader выделяет, инициализирует и возвращает структуру IplImage. Она является сокращением от<br /> | + | ''IplImage''. This call is a shortened form of <br />Функция CreateImageHeader выделяет, инициализирует и возвращает структуру ''IplImage''. Она является сокращением от<br /> |
iplCreateImageHeader (channels, 0, depth, | iplCreateImageHeader (channels, 0, depth, | ||
channels == 1 ? "GRAY" : "RGB", | channels == 1 ? "GRAY" : "RGB", | ||
| Строка 30: | Строка 30: | ||
|} | |} | ||
| − | Вернуться: [[Глава 14. Основные структуры и операции | + | Вернуться: [[Глава 14. Основные структуры и операции]]. |
Текущая версия на 13:58, 17 августа 2010
| CreateImageHeader | |
|---|---|
| Allocates, initializes, and returns structure IplImage. Выделяет, инициализирует и возвращает структуру IplImage. | |
| IplImage* cvCreateImageHeader (CvSize size, int depth, int channels); | |
| size | Image width and height. Ширина и высота изображения. |
| depth | Image depth. Глубина изображения. |
| channels | Number of channels. Количество каналов. |
| Описание | The function CreateImageHeader allocates, initializes, and returns the structure
IplImage. This call is a shortened form of iplCreateImageHeader (channels, 0, depth,
channels == 1 ? "GRAY" : "RGB",
channels == 1 ? "GRAY" : channels == 3 ? "BGR" : "BGRA",
IPL_DATA_ORDER_PIXEL, IPL_ORIGIN_TL, 4,
size.width, size.height,
0, 0, 0, 0);
|
Вернуться: Глава 14. Основные структуры и операции.