2012. 8. 4. 12:55
cv::Mat -> IplImage convert 카테고리 없음2012. 8. 4. 12:55
class cv::Mat{
operator CvMat() const;
//! converts header to IplImage; no data is copied
operator IplImage() const;
}
뭘까요?
Mat mat;
IplImage image = mat; <-- 이렇게 쓰면 , operator IplImage()가 호출됨
왜냐?
IplImage image = (IplImage) mat; <- 이기 때문, 캐스트도 연산자~~~~~
그래서 캐스팅 오버로딩하는 구문이
operator IplImage() const; 라는 거~