728x90
덧셈
Void cvAdd(const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask=NULL);
#dst = src1 + src2
void cvAddWeighted(const CvArr* src1, double alpha, const CvArr* src2, double beta, double gamma, CvArr* dst);
#dst = src1 x alpha + src2 x beta + gamma
뺄셈
Void cvSub(const CvArr* src1, const CvArr* src2, CvArr* dst, const CvArr* mask=NULL);
#dst = src1 - src2
void cvSubRS(const CvArr* src1, CvScalar value, CvArr* dst, const CvArr* mask=NULL);
#dst = value - src
곱셈,나눗셈
Void cvMul(const CvArr* src1, const CvArr* src2, CvArr* dst, double scale=1);
#dst = src1 x src2 x scale
Void cvDiv(const CvArr* src1, const CvArr* src2, CvArr* dst, double scale=1);
#dst = src1 x scale / src2
#dst = scale / src2 if src1 == 0
침식,팽창
Void cvErode(const CvArr* src, CvArr* dst, IplConvKernel* element = NULL, int iterations=1);
# Element = 0; 3x3 Rectangle
# Iterations : 반복횟수
# Ex) cvErode(srcImage,img2,0,1);
Void cvDilate(const CvArr* src, CvArr* dst, IplConvKernel* element = NULL, int iterations=1);
# Element = 0; 3x3 Rectangle
# Iterations : 반복횟수
# Ex) cvDilate(srcImage,img2,0,1);
'영상처리 > 기초' 카테고리의 다른 글
이미지 다운 샘플링 (4) | 2022.12.23 |
---|---|
Human Hand Modeling from Surface Anatomy (0) | 2022.12.13 |
Corner detector (0) | 2022.12.13 |
영상추적 (0) | 2022.12.13 |
Edge검출 (0) | 2022.12.13 |