프로그래밍 노트/opencv 분석
코드분석 2021년 01월 29일 CV_Assert 매크로
opencv\modules\core\include\opencv2\core\base.hpp의 342번째 줄에 있는 CV_Assert 매크로를 분석해보았다. #define CV_Assert( expr ) do { if(!!(expr)) ; else cv::error( cv::Error::StsAssert, #expr, CV_Func, __FILE__, __LINE__ ); } while(0) 2021. 1. 29 최초 작성. 2021. 1. 31 최종 작성. 우선 !!(exp)의 의미. !!를 사용하면 0이 아닌 모든 정수를 1로 바꾸어 주는 것이다. 자세한 내용 - https://stackoverflow.com/questions/14751973/what-is-in-c #include int main() {..
2021. 1. 29. 22:50