tmp = cvCreateImage(cvSize(img->width + borderSize * 2,
img->height + borderSize * 2), img->depth, img->nChannels);
cvSetZero(tmp);
cvCopyMakeBorder(img, tmp, cvPoint(borderSize, borderSize),
IPL_BORDER_REPLICATE);
img->height + borderSize * 2), img->depth, img->nChannels);
cvSetZero(tmp);
cvCopyMakeBorder(img, tmp, cvPoint(borderSize, borderSize),
IPL_BORDER_REPLICATE);

comments
comments rss (+댓글 쓰러가기)