14.1. Функции изображения
Версия от 13:58, 17 августа 2010; Zeus (обсуждение | вклад)
| 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. Основные структуры и операции.