-
Notifications
You must be signed in to change notification settings - Fork 160
Closed
Description
p5
带阴影的第3行代码 *data++= *data/div*div + div2; div2应该是div/2。
对应的示例代码为colorReduce.cpp的colorReduce1,示例代码没有错。
原书在这里也是少了个/
p9,第 4 代码块注释处
现:
//整理表示水平反转
正:
//1表示水平反转
p35
第三个代码块:
*data++= *data/div*div + div2;
其中 `div2` 应该是 `div/2` 。
p38
第二个代码块第12行:
uchar*data= image.ptr<uchar>(j);
`uchar*data` 中间少了个空格,应该是 `uchar *data` 或者 `uchar* data` 。
p40-p42
有多处的 cv::Mat Iterator_
或 cv::Mat ConstIterator_
,应该把中间的空格去掉。
p41
顶部的代码块第10行:
(*it)[1]= (*it)[11/div*div+div/2;
其中的 `[11` 应该是 `[1]` 。
p45
uchar* data =image.ptr<uchar>(j);
//第j行的地址
p163
cv_retr_list 应该是获取所有轮廓
HuskyRye
Metadata
Metadata
Assignees
Labels
No labels