理科系の備忘録

Linux/Ubuntu/Mac/Emacs/Computer vision/Robotics

OpenCVメモ

inline unsigned char getPixel(IplImage *image, int x, int y, int index)
{
    return (uchar)image->imageData[y*image->widthStep + x*image->nChannels + index];
}

IplImageの任意の画素にアクセスする関数.